我正在尝试使ODBC在MAMP上工作.我尝试了许多建议和解决方案,包括那些已经在stackoverflow上的建议和解决方案:
I'm trying to get ODBC to work on MAMP. I have tried many suggestions and solutions including those already on stackoverflow:
MAMP:添加ODBC或SQL Server支持, 如何将ODBC驱动程序添加到MAMP环境?
到目前为止,没有一个成功.
None are successful so far.
这是我尝试过的最新版本.
This is the latest I tried.
我下载了最新的ODBC连接器: dev.mysql/downloads/connector/odbc/ 与OSX DMG一起安装
I downloaded the latest ODBC connector: dev.mysql/downloads/connector/odbc/ Installed it with the OSX DMG
我比以前在iODBC中添加了驱动程序
I than added the driver in iODBC
我一直收到此消息:
无法加载特定的驱动程序
Specific driver could not be loaded
和
找不到合适的图像.确实找到了:/usr/local/lib/libmyodbc5w.so mach-o,但是体系结构错误
No suitable image found. Did find: /usr/local/lib/libmyodbc5w.so mach-o, but wrong architecture
有什么建议吗?
推荐答案看起来您只对iODBC的32位是正确的.
Looks like you are right about the 32-bit only of iODBC.
您将需要下载源代码并从头开始编译.您还需要首先通过AppStore下载XCode,因此您可以访问gcc和cmake.
You will need to download the Source, and compile from scratch. You will also need to download XCode through the AppStore first, so you have access to gcc and cmake.
源代码链接: www.iodbc. org/downloads/iODBC/libiodbc-3.52.7.tar.gz
注意:在CLI中,您可以运行lipo -detailed_info /path/to/binary命令.这将为您提供有关指定二进制文件的详细信息.
Note: From the CLI you can run the lipo -detailed_info /path/to/binary command. This would give you detailed information about a specified binary.
更多推荐
如何在OSX上将ODBC添加到MAMP
发布评论