Hi all, have had some fun with installing psycopg in different machines and trying to take newer version into use. Below is the configure,which works for me with psycopg 1.0.1 and versions with errprs for 1.0.3 and 1.0.4. Any ideas what migth be the problem? Help appreciated. Ps. Is it just me or does someone else think, that this installing is sometimes too hard. Anyway guide for installation still present at: http://groups.yahoo.com/group/zope/message/74401 *1.0.1* ./configure --with-mxdatetime-includes=../egenix-mx-base-2.0.3/mx/DateTime/mxDateTime/ --with-postgres-libraries=/usr/local/pgsql/lib --with-postgres-includes=/usr/local/pgsql/include --with-python=/usr/bin/python2.1 WORKS. Hooray! *1.0.3* ./configure --with-mxdatetime-includes=../egenix-mx-base-2.0.3/mx/DateTime/mxDateTime/ --with-postgres-libraries=/usr/local/pgsql/lib --with-postgres-includes=/usr/local/pgsql/include --with-python=/usr/bin/python2.1 --with-python-version=2.1 ERROR: ./config.status: /usr/bin/python2.1/lib/python2.1/config/makesetup: Not a directory Wtf? *1.0.4* ./configure --with-mxdatetime-includes=../egenix-mx-base-2.0.3/mx/DateTime/mxDateTime/ --with-postgres-libraries=/usr/local/pgsql/lib --with-postgres-includes=/usr/local/pgsql/include --with-python=/usr/bin/python2.1 make ./module.o ./connection.o ./cursor.o ./typeobj.o ./typemod.o -L/usr/local/pgsql/lib -lpq -o ./psycopgmodule make: execvp: ./module.o: Permission denied make: *** [psycopgmodule] Error 127 Fails....wtf? -huima
On Sun, 2002-03-03 at 18:52, Heimo Laukkanen wrote: [snip]
*1.0.4*
/configure --with-mxdatetime-includes=../egenix-mx-base-2.0.3/mx/DateTime/mxDateTime/ --with-postgres-libraries=/usr/local/pgsql/lib --with-postgres-includes=/usr/local/pgsql/include --with-python=/usr/bin/python2.1
make
/module.o ./connection.o ./cursor.o ./typeobj.o ./typemod.o -L/usr/local/pgsql/lib -lpq -o ./psycopgmodule make: execvp: ./module.o: Permission denied make: *** [psycopgmodule] Error 127
Fails....wtf?
the configure script is missing the linker (this is due to some changes done in 1.0.2, i think, i'll reverse them for 1.0.5.) for now you can simply link by hand: gcc -shared ./module.o ./connection.o ./cursor.o ./typeobj.o ./typemod.o -L/usr/local/pgsql/lib -lpq -o ./psycopgmodule.so hope this helps, federico -- Federico Di Gregorio Debian GNU/Linux Developer & Italian Press Contact fog@debian.org INIT.D Developer fog@initd.org Generated by Signify v1.07 [http://www.debian.org/] -- brought to you by One Line Spam
On Sun, Mar 03, 2002 at 07:52:48PM +0200, Heimo Laukkanen wrote:
Hi all, [...] make
./module.o ./connection.o ./cursor.o ./typeobj.o ./typemod.o -L/usr/local/pgsql/lib -lpq -o ./psycopgmodule make: execvp: ./module.o: Permission denied make: *** [psycopgmodule] Error 127
Fails....wtf?
Hihihi, this is strange but seems to be a reucuring bug. Looks like 'configure' wasn't able to dectect your linker program (should be a make variable called 'LD' or something like this). So when make tries to do: $(LD) ./module.o ./connection.o ./cursor.o ./typeobj.o ./typemod.o \ -L/usr/local/pgsql/lib -lpq -o ./psycopgmodule and LD is unset your shell dutifully tries to execute the first thing found, which happens to be './module.o'. Hmm, we seem to come accross this bug every once in a while ... Ralf Mattes
-huima
_______________________________________________ Psycopg mailing list Psycopg@lists.initd.org http://lists.initd.org/mailman/listinfo/psycopg
participants (3)
-
Federico Di Gregorio -
Heimo Laukkanen -
rm@fabula.de