0

我通过在 OS X 10.8.5 上安装了 Homebrew 版本的 Postgres

brew install postgresql

然后cp /usr/local/Cellar/postgresql/9.2.3/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/为它添加了一个午餐启动器。

然后我将(setup.cfg)指向它并输入python setup.py build ,但随后出现此错误:

ld: warning: ignoring file /usr/local/Cellar/postgresql/9.2.3/lib/libpq.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /usr/local/Cellar/postgresql/9.2.3/lib/libpq.dylib

因此,通过 brew 构建 libpq 似乎有些奇怪(从psycopg2的角度来看)

4

0 回答 0