如何在OSX上将ODBC添加到MAMP

编程入门 行业动态 更新时间:2024-10-26 12:24:20
本文介绍了如何在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连接器: 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.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

本文发布于:2023-10-26 11:01:33,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1529941.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:上将   如何在   MAMP   OSX   ODBC

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!