problems compiling pyscopg2 on RHEL4

C

Chris Withers

Hi All,

I installed the following rpms:

postgresql-libs-7.4.19-1.el4_6.1
postgresql-devel-7.4.19-1.el4_6.1
postgresql-7.4.19-1.el4_6.1

And then installed psycopg2 as follows:

wget http://initd.org/pub/software/psycopg/psycopg2-2.0.12.tar.gz
tar xzf psycopg2-2.0.12.tar.gz
cd psycopg2-2.0.12
python2.6 setup.py install

However, it appears something went wrong:

# python2.6
Python 2.6.2 (r262:71600, Sep 25 2009, 12:03:16)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-10)] on linux2
Type "help", "copyright", "credits" or "license" for more information.Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.6/site-packages/psycopg2/__init__.py",
line 60, in <module>
from _psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
ImportError:
/usr/local/lib/python2.6/site-packages/psycopg2/_psycopg.so: undefined
symbol: PQserverVersion

Has anyone seen this and/or know how to fix it?

cheers,

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,965
Messages
2,570,148
Members
46,710
Latest member
FredricRen

Latest Threads

Top