我通过在OS X 10.8.5上安装了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的角度)
目前没有回答
相关问题 更多 >
编程相关推荐