将ODBC添加到MAMP [英] Adding ODBC to MAMP

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

问题描述

过去的几天我一直在尝试安装ODBC,但我现在已经迷失了方向,在这里,我已经超出了我的理解范围.在我崩溃之前,请有人帮我.这是我正在尝试的:

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)下载1.7.2源代码包(可在此处使用1.7.2)(我使用的是1.7.2):

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放入php目录.

2) CD into the php directory.

3)运行"/configure --with-iodbc = shared"

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

4)运行"make"

4) Run "make"

5)将./modules/odbc.so文件复制到MAMP/bin/PHP5/lib/php/extensions/no-debug-non-zts-20050922

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

6)在php.ini中添加"extension = odbc.so"

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

当我重新启动MAMP Pro时,它没有显示在phpinfo()中.另外,当我检查PHP日志时,我看到:

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警告:PHP启动:第0行中的Unod未知的库(可能不是PHP库)'odbc.so'"

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

有什么想法吗?

推荐答案

最后,我没有找到答案,并使用了

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.

这篇关于将ODBC添加到MAMP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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