install pysql on mac osx

rdack rdacker at
Mon Sep 10 18:57:31 CEST 2001

installed postgresql 7.1.3, python 2.1. now trying to install pypgsql.
all on os x 10.0x (how do i know os version#?) G4.
starts out: doing 'python build' ok, but get

"undefined or invalid # directive" in every file.

goes along until:

cc -bundle -undefined suppress build/temp.darwin-1.3-Power
Macintosh-2.1/libpqmodule.o build/temp.darwin-1.3-Power
Macintosh-2.1/pgboolean.o build/temp.darwin-1.3-Power
Macintosh-2.1/pgint2object.o build/temp.darwin-1.3-Power
Macintosh-2.1/pgint8object.o build/temp.darwin-1.3-Power
Macintosh-2.1/pgversion.o build/temp.darwin-1.3-Power
Macintosh-2.1/pglargeobject.o build/temp.darwin-1.3-Power
Macintosh-2.1/pgnotify.o build/temp.darwin-1.3-Power
Macintosh-2.1/pgconnection.o build/temp.darwin-1.3-Power
Macintosh-2.1/pgresult.o build/temp.darwin-1.3-Power
Macintosh-2.1/pymemstrdup.o -L/usr/local/pgsql/lib
-R/usr/local/pgsql/lib -lpq -o build/lib.darwin-1.3-Power
cc: unrecognized option `-R/usr/local/pgsql/lib'
/usr/bin/ld: table of contents for archive:
/usr/local/pgsql/lib/libpq.a is out of date; rerun ranlib(1) (can't
load from it)
error: command 'cc' failed with exit status 1

looks like '-R' option is missing a space after it? what can i do?

i see a 74k file "build/lib.darwin-1.3-Power Macintosh-2.1/"
but i can't believe it is build let alone installed.

More information about the Python-list mailing list