[常见错误] ImportError: libpq.so.5: cannot open shared object file: No such file or directory

from psycopg._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
ImportError: libpq.so.5: cannot open shared object file: No such file or directory

Solution:

# cd /etc/ld.so.conf.d
# echo "/usr/local/pgsql/lib" >>pgsql.conf
# ldconfig
posted @ 2012-08-07 16:14  DanielXLee  阅读(4250)  评论(0编辑  收藏  举报