0

I installed the Homebrew version of Postgres on OS X 10.8.5 via

brew install postgresql

And then did a cp /usr/local/Cellar/postgresql/9.2.3/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/ to add a lunchy launcher for it.

Then I pointed the (setup.cfg) to it and typed python setup.py build but then I got this error:

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

so it seems there is something odd about the build of libpq by brew (from the standpoint of psycopg2 )

Chris Travers
  • 25,424
  • 6
  • 65
  • 182
Terrence Brannon
  • 4,760
  • 7
  • 42
  • 61
  • 1
    Looks like psycopg2 is built 32 bit whilst libpq is 32 bit. What python are you using, the Apple one is 64 bit - it would make sense to use the one in a packageing system as one point of a packaging system is to make sure all the correct and consistent compile options are used – mmmmmm Oct 20 '13 at 15:29
  • I'm using the apple one. Thanks I will try to get the brew one. – Terrence Brannon Oct 20 '13 at 19:41

0 Answers0