First of all, the context of this question is: Cannot install psycopg2 on OSX 10.6.7 with XCode4
So I am trying to execute the following:
$PATH=$PATH:/Library/PostgreSQL/9.1/bin sudo env ARCHFLAGS="-arch i386 -arch x86_64" pip install psycopg2
however, I get the following:
/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/texbin:/usr/X11/bin=/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/texbin:/usr/X11/bin:/Library/PostgreSQL/9.1/bin: No such file or directory
Basically, I need to add '/Library/PostgreSQL/9.1/bin' to $PATH, so that the rest of the command can be executed as it needs something from that directory.
Any suggestion?