From: Gerhard <ger...@gm...> - 2002-09-13 23:09:39
|
* Tony Lembke <tl...@me...> [2002-09-14 08:19 +1000]: > On Saturday, September 14, 2002, at 05:08 AM, Gerhard Häring wrote: > >Could you send a build log? I'd really like to make pyPgSQL work on > >MacOS/X, too. > > The log is below. > > I get the error > ld: unknown flag: -R/usr/local/pgsql/lib > which I am told now by my fellow GnuMED developers that you can ignore > - but the ensuing install command gives the same error. > [...] > gcc -Wl,-F. -Wl,-flat_namespace,-U,_environ -bundle -framework Python > build/temp.darwin-6.0-Power Macintosh-2.2/libpqmodule.o > build/temp.darwin-6.0-Power Macintosh-2.2/pgboolean.o > build/temp.darwin-6.0-Power Macintosh-2.2/pgint2object.o > build/temp.darwin-6.0-Power Macintosh-2.2/pgint8object.o > build/temp.darwin-6.0-Power Macintosh-2.2/pgversion.o > build/temp.darwin-6.0-Power Macintosh-2.2/pglargeobject.o > build/temp.darwin-6.0-Power Macintosh-2.2/pgnotify.o > build/temp.darwin-6.0-Power Macintosh-2.2/pgconnection.o > build/temp.darwin-6.0-Power Macintosh-2.2/pgresult.o > build/temp.darwin-6.0-Power Macintosh-2.2/pymemstrdup.o > -L/usr/local/pgsql/lib -Wl,-R/usr/local/pgsql/lib -lpq -o > build/lib.darwin-6.0-Power Macintosh-2.2/pyPgSQL/libpq/libpqmodule.so > ld: unknown flag: -R/usr/local/pgsql/lib > error: command 'gcc' failed with exit status 1 Ok, could you try to edit setup.py, scroll to the end and remove the line: runtime_library_dirs = pypgsql_rt_dirs This should hopefully get rid of the compile error. Where did you get the PostgreSQL for MacOS X for? Or did you compile it yourself? I have access to a MacOS X box at the Sourceforge compile farm, but unfortunately, it doesn't have PostgreSQL installed. If this already works fine for compiling pyPgSQL, could you then send me your working setup.py? I'll then try to change the FAQ and build process accordingly, so that building works out of the box in future pyPgSQL releases. -- Gerhard |