psycopg2不能使用Mac Homebrew生成的libpq.dylib

时间:2013-10-20 14:49:09

标签: python macos homebrew psycopg2 libpq

我通过

在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)的角度来看

0 个答案:

没有答案