problems compiling pyscopg2 on RHEL4

Discussion in 'Python' started by Chris Withers, Sep 25, 2009.

  1. 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.
    >>> import psycopg2

    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

    --
    Simplistix - Content Management, Batch Processing & Python Consulting
    - http://www.simplistix.co.uk
     
    Chris Withers, Sep 25, 2009
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dayton Jones

    Python/up2date error on RHEL4

    Dayton Jones, Apr 11, 2006, in forum: Python
    Replies:
    0
    Views:
    489
    Dayton Jones
    Apr 11, 2006
  2. Christopher Taylor

    Help: Python2.3 & Python2.4 on RHEL4 x86_64

    Christopher Taylor, Oct 18, 2006, in forum: Python
    Replies:
    15
    Views:
    512
    Christopher Taylor
    Oct 24, 2006
  3. Yahooooooooo

    STL on rhel4.4

    Yahooooooooo, Mar 20, 2007, in forum: C++
    Replies:
    5
    Views:
    497
    mlimber
    Mar 20, 2007
  4. Replies:
    3
    Views:
    268
    red floyd
    Feb 13, 2008
  5. Daniel Berger
    Replies:
    4
    Views:
    109
    Daniel Berger
    Sep 8, 2006
Loading...

Share This Page