This project is archived and is in readonly mode.
Python import error libpq.so.5:
-
Daniele Varrazzo
The buildbot tests the lib the same way (postgres compiled in /usr/local/somewhere) so I expect it to work.
Please try with a "make clean", "make" in the psycopg dir. Take a look if the compiler log shows the expected path (e.g. -I/usr/local/pgsql/include/ instead of /usr/include). Also take a look if ldd psycopg2/_psycopg.so links to the correct lib.
What is the output of "pg_config --libdir --includedir" using your pg_config?
-
Daniele Varrazzo
- State changed from new to invalid
You should probably add your non-standard library to the
LD_LIBRARY_PATHto allow the linker to find it:$ ldd /home/piro/src/psycopg2/build/lib.2.6/psycopg2/_psycopg.so | grep libpq libpq.so.5 => not found $ LD_LIBRARY_PATH=/usr/local/pgsql/lib ldd /home/piro/src/psycopg2/build/lib.2.6/psycopg2/_psycopg.so | grep libpq libpq.so.5 => /usr/local/pgsql/lib/libpq.so.5 (0x00007f1fac1b1000)