如何在OSX上将ODBC添加到MAMP [英] How to add ODBC to MAMP on OSX

查看:125
本文介绍了如何在OSX上将ODBC添加到MAMP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使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连接器: http://dev.mysql.com/downloads/connector/odbc/ 与OSX DMG一起安装

I downloaded the latest ODBC connector: http://dev.mysql.com/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.

源代码链接: http://www.iodbc. org/downloads/iODBC/libiodbc-3.52.7.ta​​r.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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆