在 Snow Leapord 上安装 pdo_psql 时出现问题

发布于 2024-11-01 03:58:08 字数 2328 浏览 0 评论 0原文

我正在尝试在 OSX 10.6 上安装 pdo 驱动程序,并且我一直按照此处找到的说明进行操作:
安装 PostgreSQL 的 PDO 驱动程序在 Mac 上(使用 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 位内核,并且我的环境变量是这样设置的。经过几个小时的谷歌搜索后,我被困住了。感谢您提供的任何帮助。

I'm trying to install the pdo drivers on OSX 10.6 and I've been following the directions found here:

Installing PDO-drivers for PostgreSQL on Mac (using Zend for eclipse)

Every time I try and compile the pdo_psql.so driver it compiles fine but the 'make test' finds a problem.

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
=====================================================================

I'm running a 32 bit kernel and my env vars are set as such. After google-ing for hours I'm stuck. Thanks for any help you can provide.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

会傲 2024-11-08 03:58:08

事实证明,我的新笔记本电脑为 Xcode 设置了错误的磁盘。当我安装正确的(最新)版本时,一切正常。

It turns out with my new laptop I grabbed the wrong disk set for Xcode. When I installed the correct (newest) version, everything worked.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文