Hi all,
I'm new to this list and having a problem getting PyGreSQL built and installed.
My platform is Solaris 10, x86. The Solaris release is somewhat old
... u2. Updating it at the moment is not possible.
I've shown the import error, as well as the output from pg_config below.
I've tried the install procedure (setup.py) as well as building
manually as suggested in the installation notes, in various
combinations, and am not sure what to do next.
Any help would be greatly appreciated!
Regards,
Chris Botos
------------------------
Python 2.5 (r25:51908, Dec 20 2007, 16:09:34)
[GCC 3.4.3 (csl-sol210-3_4-branch+sol_rpath)] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import pg
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.5/site-packages/pg.py", line 21, in <module>
from _pg import *
ImportError: ld.so.1: python2.5: fatal: relocation error: file
/usr/local/lib/python2.5/site-packages/_pg.so: symbol
PQescapeStringConn: referenced symbol not found
>>>
----------------------------
$ pg_config
BINDIR = /usr/bin
DOCDIR = /usr/share/doc/pgsql/8.1.3
INCLUDEDIR = /usr/include/pgsql
PKGINCLUDEDIR = /usr/include/pgsql
INCLUDEDIR-SERVER = /usr/include/pgsql/server
LIBDIR = /usr/lib
PKGLIBDIR = /usr/lib
LOCALEDIR = /usr/share/locale
MANDIR = /usr/share/man
SHAREDIR = /usr/share/pgsql
SYSCONFDIR = /etc/pgsql
PGXS = /usr/lib/pgxs/src/makefiles/pgxs.mk
CONFIGURE = '--prefix=/usr' '--bindir=/usr/bin'
'--libexecdir=/usr/bin' '--sbindir=/usr/bin'
'--datadir=/usr/share/pgsql' '--sysconfdir=/etc/pgsql'
'--mandir=/usr/share/man' '--libdir=/usr/lib'
'--includedir=/usr/include/pgsql' '--sharedstatedir=/var/lib/pgsql'
'--localstatedir=/var/lib/pgsql' '--enable-nls'
'--with-localedir=/usr/share/locale'
'--with-docdir=/usr/share/doc/pgsql/8.1.3' '--with-tcl' '--with-perl'
'--with-python' '--with-pam' '--with-openssl' '--enable-thread-safety'
'--with-includes=/sfw10/builds/build/sfw10-patch/usr/src/cmd/postgres/rltmp/include:/usr/sfw/include'
'--with-tclconfig=/usr/sfw/lib'
'--with-libs=/sfw10/builds/build/sfw10-patch/usr/src/cmd/postgres/rltmp/lib:/usr/sfw/lib:/usr/lib'
'CC=/ws/on10-tools/SUNWspro/SOS8/bin/cc' 'CFLAGS=-xc99=none -xCC'
CC = /ws/on10-tools/SUNWspro/SOS8/bin/cc
CPPFLAGS = -I/sfw10/builds/build/sfw10-patch/usr/src/cmd/postgres/rltmp/include
-I/usr/sfw/include
CFLAGS = -O -xarch=386 -xchip=pentium -xspace -Xa -xildoff -xc99=none -xCC
CFLAGS_SL = -KPIC
LDFLAGS = -L/sfw10/builds/build/sfw10-patch/usr/src/cmd/postgres/rltmp/lib
-L/usr/sfw/lib -L/usr/lib -Wl,-R/usr/lib
LDFLAGS_SL =
LIBS = -lpgport -lpam -lssl -lcrypto -lz -lreadline -ltermcap -lrt
-lresolv -lgen -lsocket -lnsl -ldl -lm
VERSION = PostgreSQL 8.1.3
_______________________________________________
PyGreSQL mailing list
[email protected]
http://mailman.vex.net/mailman/listinfo/pygresql