Adding ODBC to MAMP

人走茶凉 提交于 2019-12-22 08:33:26

问题


I've spent the last couple days trying to get ODBC installed and I am about to lose my mind, I'm way out of my element here. Please can some one help me before I fall to pieces. Here's what I'm trying:

1) Download 1.7.2 source code package found here (I'm using 1.7.2): http://www.mamp.info/en/downloads/index.html

2) CD into the php directory.

3) Run "/configure --with-iodbc=shared"

4) Run "make"

5) Copy the ./modules/odbc.so file into MAMP/bin/PHP5/lib/php/extensions/no-debug-non-zts-20050922

6) Add "extension=odbc.so" to php.ini

When I restart MAMP Pro, it doesn't show up in phpinfo(). Also, when I check the PHP log, I see:

"[16-Sep-2009 16:14:10] PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'odbc.so' in Unknown on line 0"

Any ideas?


回答1:


In the end I found no answer to this and have used Marc Liyanage's PHP build which has ODBC in it already. So when I work in this project, I only use MAMP's MySQL.



来源:https://stackoverflow.com/questions/1436160/adding-odbc-to-mamp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!