I want to use Python as well as PHP on my Postgresql server so I tried to install psycopg2, a Postgresql db adapter and there's an error.
Steps to reproduce git clone https://github.com/psycopg/psycopg2 cd psycopg2 python setup.py install
Now go into python interactive console and type import psycopg2.
import psycopg2 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/dist-packages/psycopg2/init.py", line 50, in <module> from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID ImportError: libpq.so.5: cannot open shared object file: No such file or directory