Re: Cannot Compile Psycopg on OSX (Tiger)
Philip Semanchuk <[email protected]>
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Message-ID | <[email protected]> |
On Apr 30, 2008, at 5:22 PM, Stuart Grimshaw wrote:
> I'm trying to compile Psycopg2 2.0.7 on an Intel Macbook running OSC
> Tiger (10.4), but the build script seems to think it's got a PPC
> architecture.
Hi Stuart,
I've compiled psycopg (psycopg2-2.0.5.1) on 10.4/Intel without a
hitch, and without editing any config files that I can remember.
(It's been a while.) I think I've done this with both Python 2.3.5
that comes w/OS X and with Python 2.5 that I installed myself.
> Here is the output from "python setup.py install"
>
> running install
> running build
> running build_py
> running build_ext
> building 'psycopg2._psycopg' extension
> gcc -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Where is it getting this isysroot from? That looks like the source of
your problems, because later on we see this:
>
> /usr/bin/ld: warning can't open dynamic library:
> /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/libssl.0.9.8.dylib
If you trim "/Developer/SDKs/MacOSX10.4u.sdk" from the front of that
path, I bet the file exists.
HTH
Philip