dir exactly? Didn't you have /usr/local/lib/libpq.so?
libpq files are stored under /usr/lib (although there is a /usr/local/lib path)
You can try running the test suite with "make check", after setting
the PSYCOPG_TESTDB_* env variables and maybe creating a scratch db.
See tests/testconfig.py to check what are the vars used and their
default.
I couldn't run the test until I added the environment PYTHONPATH entry to the default bash configuration file at etc/profile. with the ...site-packages folder because the python interpreter raised ImportError.
This is surely something misconfigured when installing the python interpreter in CentOS.
After testing with a new database the result is:
----------------------------------------------------------------------
Ran 382 tests in 131.328s
OK (skipped=45)
Note: The make check test stays idle at test_async_cancel if PSYCOPG2_TESTDB_PASSWORD is not provided, as the pg database owner is configured to login for db connection
Thanks again