Thread: Python Interface Installation Problems
I am using Python 1.5.1 and want to install (and use) PyGreSQL v 2.1 ... However, I am having issues getting the thing to work. Attached is an ehb_config.out file which is what happens when I type ./configure also is Attached is an ehb_make.out file which is what happens when I type make from the toplevel directory of Python I edited the Setup file to contain pg pgmodule.c (etc) and I also changed inside of that file the two references to libpq-??.h from their < --- > format to a " ---- " format to make sure I was very specific as to where these files are. Can anyone help me with this compilation problem?? I really need Postgres support in my Python application. Thanks Eric Buschelmann ehb@iac.net loading cache ./config.cache checking MACHDEP... linux2 checking CCC... checking for --without-gcc... no checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking LINKCC... $(PURIFY) $(CC) checking for ranlib... (cached) ranlib checking for ar... (cached) ar checking how to run the C preprocessor... (cached) gcc -E checking for AIX... no checking for minix/config.h... (cached) no checking whether gcc accepts -Olimit 1500... (cached) no checking whether gcc accepts -OPT:Olimit=0... (cached) no checking for C preprocessor type... ansi checking for ANSI C header files... (cached) yes checking for dlfcn.h... (cached) yes checking for fcntl.h... (cached) yes checking for limits.h... (cached) yes checking for locale.h... (cached) yes checking for ncurses.h... (cached) yes checking for pthread.h... (cached) no checking for signal.h... (cached) yes checking for stdarg.h... (cached) yes checking for stddef.h... (cached) yes checking for stdlib.h... (cached) yes checking for thread.h... (cached) no checking for unistd.h... (cached) yes checking for utime.h... (cached) yes checking for sys/audioio.h... (cached) no checking for sys/file.h... (cached) yes checking for sys/lock.h... (cached) no checking for sys/param.h... (cached) yes checking for sys/select.h... (cached) no checking for sys/time.h... (cached) yes checking for sys/times.h... (cached) yes checking for sys/un.h... (cached) yes checking for sys/utsname.h... (cached) yes checking for sys/wait.h... (cached) yes checking for dirent.h that defines DIR... (cached) yes checking for opendir in -ldir... (cached) no checking for clock_t in time.h... yes checking for mode_t... (cached) yes checking for off_t... (cached) yes checking for pid_t... (cached) yes checking return type of signal handlers... (cached) void checking for size_t... (cached) yes checking for uid_t in sys/types.h... (cached) yes checking size of int... (cached) 4 checking size of long... (cached) 4 checking SO... .so checking LDSHARED... gcc -shared checking CCSHARED... -fpic checking LINKFORSHARED... -Xlinker -export-dynamic checking for dlopen in -ldl... (cached) yes checking for shl_load in -ldld... (cached) no checking for getpwnam in -lsun... (cached) no checking for t_open in -lnsl... (cached) no checking for socket in -lsocket... (cached) no checking for --with-libs... no checking for --with(out)-readline... not specified. checking for --with-dec-threads... no checking for --with-threads... no checking for --with-thread... no checking for --with-sgi-dl... no checking for --with-dl-dld... no checking for alarm... (cached) yes checking for chown... (cached) yes checking for clock... (cached) yes checking for dlopen... (cached) yes checking for execv... (cached) yes checking for flock... (cached) yes checking for fork... (cached) yes checking for ftime... (cached) yes checking for ftruncate... (cached) yes checking for gethostname_r... (cached) no checking for getpeername... (cached) yes checking for getpgrp... (cached) yes checking for getpid... (cached) yes checking for getpwent... (cached) yes checking for gettimeofday... (cached) yes checking for getwd... (cached) yes checking for kill... (cached) yes checking for link... (cached) yes checking for lstat... (cached) yes checking for mkfifo... (cached) yes checking for mktime... (cached) yes checking for nice... (cached) yes checking for pause... (cached) yes checking for plock... (cached) no checking for putenv... (cached) yes checking for readlink... (cached) yes checking for select... (cached) yes checking for setgid... (cached) yes checking for setlocale... (cached) yes checking for setuid... (cached) yes checking for setsid... (cached) yes checking for setpgid... (cached) yes checking for setpgrp... (cached) yes checking for setvbuf... (cached) yes checking for sigaction... (cached) yes checking for siginterrupt... (cached) yes checking for sigrelse... (cached) no checking for strftime... (cached) yes checking for strptime... (cached) yes checking for symlink... (cached) yes checking for tcgetpgrp... (cached) yes checking for tcsetpgrp... (cached) yes checking for times... (cached) yes checking for truncate... (cached) yes checking for uname... (cached) yes checking for waitpid... (cached) yes checking for dup2... (cached) yes checking for getcwd... (cached) yes checking for strdup... (cached) yes checking for strerror... (cached) yes checking for memmove... (cached) yes checking for getpgrp... (cached) yes checking for setpgrp... (cached) yes checking for gettimeofday... (cached) yes checking whether time.h and sys/time.h may both be included... (cached) yes checking whether struct tm is in sys/time.h or time.h... (cached) time.h checking for tm_zone in struct tm... (cached) no checking for tzname... (cached) yes checking for time.h that defines altzone... (cached) no checking whether sys/select.h and sys/time.h may both be included... no checking whether char is unsigned... (cached) no checking for working const... (cached) yes checking for working volatile... yes checking for working signed char... yes checking for prototypes... yes checking for variable length prototypes and stdarg.h... yes checking for bad exec* prototypes... no checking for bad static forward... no checking whether va_list is an array... no checking for __fpu_control in -lieee... (cached) no checking for --with-fpectl... checking for --with-libm=STRING... default LIBM="-lm" checking for --with-libc=STRING... default LIBC="" checking for hypot... (cached) yes checking for hypot... (cached) yes checking for genuine getopt... (cached) no checking what malloc(0) returns... (cached) nonnull creating ./config.status creating Makefile creating Objects/Makefile creating Parser/Makefile creating Python/Makefile creating Modules/Makefile.pre creating Modules/Setup.thread creating config.h config.h is unchanged (cd Modules; make -f Makefile.pre Makefile) make[1]: Entering directory `/usr/src/Python-1.5.1/Modules' rm -f ../libpython1.5.a /bin/sh ./makesetup Setup.thread Setup.local Setup make[1]: Leaving directory `/usr/src/Python-1.5.1/Modules' making Makefile in subdirectory . make[1]: Entering directory `/usr/src/Python-1.5.1' make[1]: `Makefile' is up to date. make[1]: Leaving directory `/usr/src/Python-1.5.1' making Makefile in subdirectory Parser make[1]: Entering directory `/usr/src/Python-1.5.1/Parser' make[1]: `Makefile' is up to date. make[1]: Leaving directory `/usr/src/Python-1.5.1/Parser' making Makefile in subdirectory Objects make[1]: Entering directory `/usr/src/Python-1.5.1/Objects' make[1]: `Makefile' is up to date. make[1]: Leaving directory `/usr/src/Python-1.5.1/Objects' making Makefile in subdirectory Python make[1]: Entering directory `/usr/src/Python-1.5.1/Python' make[1]: `Makefile' is up to date. make[1]: Leaving directory `/usr/src/Python-1.5.1/Python' making Makefile in subdirectory Modules make[1]: Entering directory `/usr/src/Python-1.5.1/Modules' make[1]: `Makefile' is up to date. make[1]: Leaving directory `/usr/src/Python-1.5.1/Modules' cd Parser ; make OPT="-g -O2" VERSION="1.5" \ prefix="/usr/local" exec_prefix="/usr/local" all make[1]: Entering directory `/usr/src/Python-1.5.1/Parser' gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c pgenmain.c -o pgenmain.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c acceler.c -o acceler.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c grammar1.c -o grammar1.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c listnode.c -o listnode.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c node.c -o node.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c parser.c -o parser.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c parsetok.c -o parsetok.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c tokenizer.c -o tokenizer.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c bitset.c -o bitset.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c firstsets.c -o firstsets.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c grammar.c -o grammar.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c metagrammar.c -o metagrammar.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c pgen.c -o pgen.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c printgrammar.c -o printgrammar.o gcc -g -O2 pgenmain.o acceler.o grammar1.o listnode.o node.o parser.o parsetok.o tokenizer.o bitset.o firstsets.o grammar.ometagrammar.o pgen.o printgrammar.o -ldl -o pgen gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c intrcheck.c -o intrcheck.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c myreadline.c -o myreadline.o make[1]: Leaving directory `/usr/src/Python-1.5.1/Parser' cd Objects ; make OPT="-g -O2" VERSION="1.5" \ prefix="/usr/local" exec_prefix="/usr/local" all make[1]: Entering directory `/usr/src/Python-1.5.1/Objects' gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c abstract.c -o abstract.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c classobject.c -o classobject.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c cobject.c -o cobject.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c complexobject.c -o complexobject.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c fileobject.c -o fileobject.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c floatobject.c -o floatobject.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c frameobject.c -o frameobject.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c funcobject.c -o funcobject.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c intobject.c -o intobject.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c listobject.c -o listobject.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c longobject.c -o longobject.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c dictobject.c -o dictobject.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c methodobject.c -o methodobject.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c moduleobject.c -o moduleobject.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c object.c -o object.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c rangeobject.c -o rangeobject.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c sliceobject.c -o sliceobject.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c stringobject.c -o stringobject.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c tupleobject.c -o tupleobject.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c typeobject.c -o typeobject.o make[1]: Leaving directory `/usr/src/Python-1.5.1/Objects' cd Python ; make OPT="-g -O2" VERSION="1.5" \ prefix="/usr/local" exec_prefix="/usr/local" all make[1]: Entering directory `/usr/src/Python-1.5.1/Python' gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c bltinmodule.c -o bltinmodule.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ceval.c -o ceval.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c compile.c -o compile.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c errors.c -o errors.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c frozen.c -o frozen.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c frozenmain.c -o frozenmain.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c getargs.c -o getargs.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c getcompiler.c -o getcompiler.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c getcopyright.c -o getcopyright.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c getmtime.c -o getmtime.o gcc -c -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -DPLATFORM='"linux2"' \ ./getplatform.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c getversion.c -o getversion.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c graminit.c -o graminit.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c import.c -o import.o gcc -c -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -I/ ./importdl.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c marshal.c -o marshal.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c modsupport.c -o modsupport.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c mystrtoul.c -o mystrtoul.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c pyfpe.c -o pyfpe.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c pystate.c -o pystate.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c pythonrun.c -o pythonrun.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c sigcheck.c -o sigcheck.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c structmember.c -o structmember.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c sysmodule.c -o sysmodule.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c traceback.c -o traceback.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c getopt.c -o getopt.o make[1]: Leaving directory `/usr/src/Python-1.5.1/Python' cd Modules ; make OPT="-g -O2" VERSION="1.5" \ prefix="/usr/local" exec_prefix="/usr/local" all make[1]: Entering directory `/usr/src/Python-1.5.1/Modules' gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./regexmodule.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./regexpr.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./pcremodule.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./pypcre.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./posixmodule.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./signalmodule.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./arraymodule.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./cmathmodule.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./mathmodule.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./stropmodule.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./structmodule.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./timemodule.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./operator.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./fcntlmodule.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./pwdmodule.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./grpmodule.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./selectmodule.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./socketmodule.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./errnomodule.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./md5module.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./md5c.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./rotormodule.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./binascii.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./parsermodule.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./cStringIO.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./cPickle.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -I/usr/local/pgsql/include -c ./pgmodule.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c config.c -o config.o gcc -c -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -DPYTHONPATH='":test:plat-linux2:lib-tk"' \ -DPREFIX='"/usr/local"' \ -DEXEC_PREFIX='"/usr/local"' \ -DVERSION='"1.5"' \ -DVPATH='""' \ ./getpath.c gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c main.c -o main.o gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c getbuildinfo.c -o getbuildinfo.o make[1]: Leaving directory `/usr/src/Python-1.5.1/Modules' if test ! -f libpython1.5.a; \ then for i in Parser Objects Python Modules; do rm -f $i/add2lib; done; true; \ else true; fi for i in Parser Objects Python Modules; do \ (cd $i; make VERSION="1.5" add2lib); done make[1]: Entering directory `/usr/src/Python-1.5.1/Parser' ar cr ../libpython1.5.a acceler.o grammar1.o listnode.o node.o parser.o parsetok.o tokenizer.o bitset.o firstsets.o grammar.ometagrammar.o pgen.o printgrammar.o intrcheck.o myreadline.o touch add2lib make[1]: Leaving directory `/usr/src/Python-1.5.1/Parser' make[1]: Entering directory `/usr/src/Python-1.5.1/Objects' ar cr ../libpython1.5.a abstract.o classobject.o cobject.o complexobject.o fileobject.o floatobject.o frameobject.o funcobject.ointobject.o listobject.o longobject.o dictobject.o methodobject.o moduleobject.o object.o rangeobject.o sliceobject.ostringobject.o tupleobject.o typeobject.o touch add2lib make[1]: Leaving directory `/usr/src/Python-1.5.1/Objects' make[1]: Entering directory `/usr/src/Python-1.5.1/Python' ar cr ../libpython1.5.a bltinmodule.o ceval.o compile.o errors.o frozen.o frozenmain.o getargs.o getcompiler.o getcopyright.ogetmtime.o getplatform.o getversion.o graminit.o import.o importdl.o marshal.o modsupport.o mystrtoul.o pyfpe.opystate.o pythonrun.o sigcheck.o structmember.o sysmodule.o traceback.o getopt.o touch add2lib make[1]: Leaving directory `/usr/src/Python-1.5.1/Python' make[1]: Entering directory `/usr/src/Python-1.5.1/Modules' for i in regexmodule.o regexpr.o pcremodule.o pypcre.o posixmodule.o signalmodule.o arraymodule.o cmathmodule.o mathmodule.o stropmodule.o structmodule.o timemodule.o operator.o fcntlmodule.o pwdmodule.o grpmodule.o selectmodule.o socketmodule.o errnomodule.o md5module.o md5c.o rotormodule.o binascii.o parsermodule.o cStringIO.o cPickle.o pgmodule.o config.o getpath.o main.o getbuildinfo.o; do \ if test "$i" = "signalmodule.o"; then \ ar d ../libpython1.5.a sigcheck.o intrcheck.o 2>/dev/null; \ break; \ fi; \ done ar cr ../libpython1.5.a regexmodule.o regexpr.o pcremodule.o pypcre.o posixmodule.o signalmodule.o arraymodule.o cmathmodule.o mathmodule.o stropmodule.o structmodule.o timemodule.o operator.o fcntlmodule.o pwdmodule.o grpmodule.o selectmodule.o socketmodule.o errnomodule.o md5module.o md5c.o rotormodule.o binascii.o parsermodule.o cStringIO.o cPickle.o pgmodule.o config.o getpath.o main.o getbuildinfo.o touch add2lib make[1]: Leaving directory `/usr/src/Python-1.5.1/Modules' expr `cat buildno` + 1 >buildno1 mv -f buildno1 buildno gcc -c -g -O2 -I. -DHAVE_CONFIG_H -DBUILD=`cat buildno` \ ./Modules/getbuildinfo.c ar cr libpython1.5.a getbuildinfo.o ranlib libpython1.5.a true cd Modules; make OPT="-g -O2" VERSION="1.5" \ prefix="/usr/local" exec_prefix="/usr/local" \ LIBRARY=../libpython1.5.a link make[1]: Entering directory `/usr/src/Python-1.5.1/Modules' gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c python.c -o python.o gcc -Xlinker -export-dynamic python.o \ ../libpython1.5.a -L/usr/local/pgsql/include -ldl -lm -o python make[1]: Leaving directory `/usr/src/Python-1.5.1/Modules'
Hi! Where is your problem. Everything seems fine.... Did you try any examples? Where is an error. Ciao Gregor -- Gregor Zych \|/ ___ \|/ Nur die Harten zych@pool.informatik.rwth-aachen.de @~./'O o`\.~@ kommen in den Hier arbeiten 166 Millionen Herz, /__( \___/ )__\ Garten 48 MB, ein Esel und ein Pinguin `\__`U_/'