我正在尝试在OSX 10.6上安装pdo驱动程序,我一直按照此处的说明进行操作:
Installing PDO-drivers for PostgreSQL on Mac (using Zend for eclipse)
每次我尝试编译pdo_psql.so驱动程序时,编译都很好,但'make test'会发现问题。
PHP Warning: PHP Startup: Unable to load dynamic library '/Users/me/temp/PDO_PGSQL-1.0.2/modules/pdo_pgsql.so' - dlopen(/Users/me/temp/PDO_PGSQL-1.0.2/modules/pdo_pgsql.so, 9): no suitable image found. Did find: /Users/me/temp/PDO_PGSQL-1.0.2/modules/pdo_pgsql.so: mach-o, but wrong architecture in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/Users/me/temp/PDO_PGSQL-1.0.2/modules/pdo_pgsql.so' - dlopen(/Users/me/temp/PDO_PGSQL-1.0.2/modules/pdo_pgsql.so, 9): no suitable image found. Did find: /Users/me/temp/PDO_PGSQL-1.0.2/modules/pdo_pgsql.so: mach-o, but wrong architecture in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/Users/me/temp/PDO_PGSQL-1.0.2/modules/pdo_pgsql.so' - dlopen(/Users/me/temp/PDO_PGSQL-1.0.2/modules/pdo_pgsql.so, 9): no suitable image found. Did find: /Users/me/temp/PDO_PGSQL-1.0.2/modules/pdo_pgsql.so: mach-o, but wrong architecture in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/Users/me/temp/PDO_PGSQL-1.0.2/modules/pdo_pgsql.so' - dlopen(/Users/me/temp/PDO_PGSQL-1.0.2/modules/pdo_pgsql.so, 9): no suitable image found. Did find: /Users/me/temp/PDO_PGSQL-1.0.2/modules/pdo_pgsql.so: mach-o, but wrong architecture in Unknown on line 0 ===================================================================== PHP : /usr/bin/php PHP_SAPI : cli PHP_VERSION : 5.3.4 ZEND_VERSION: 2.3.0 PHP_OS : Darwin - Darwin localhost 10.7.0 Darwin Kernel Version 10.7.0: Sat Jan 29 15:17:16 PST 2011; root:xnu-1504.9.37~1/RELEASE_I386 i386 INI actual : /Users/me/temp/PDO_PGSQL-1.0.2/tmp-php.ini More .INIs : CWD : /Users/me/temp/PDO_PGSQL-1.0.2 Extra dirs : VALGRIND : Not used ===================================================================== TIME START 2011-04-12 00:35:43 =====================================================================
我正在运行一个32位内核,我的env变量就这样设置了。谷歌打了好几个小时之后,我被困住了。感谢您提供的任何帮助。
答案 0 :(得分:0)
事实证明,我的新笔记本电脑为Xcode抓取了错误的磁盘组。当我安装正确(最新)版本时,一切正常。