Код:
root@iserver:/# ldd /usr/lib/php/extensions/pgsql.so
linux-gate.so.1 => (0xffffe000)
libpq.so.2 => not found
libc.so.6 => /lib/libc.so.6 (0xb7dd2000)
/lib/ld-linux.so.2 (0x80000000)
Код:
root@iserver:/# cat /etc/ld.so.conf
/usr/local/lib
/usr/i486-slackware-linux/lib
/usr/lib/qt/lib
/usr/local/lib/mysql
/usr/local/pgsql/lib
Код:
root@iserver:/# ls /usr/local/pgsql/lib
ascii_and_mic.so libecpg_compat.so.2.2 utf8_and_cyrillic.so
cyrillic_and_mic.so libpgport.a utf8_and_euc_cn.so
euc_cn_and_mic.so libpgtypes.a utf8_and_euc_jp.so
euc_jp_and_sjis.so libpgtypes.so utf8_and_euc_kr.so
euc_kr_and_mic.so libpgtypes.so.2 utf8_and_euc_tw.so
euc_tw_and_big5.so libpgtypes.so.2.2 utf8_and_gb18030.so
latin2_and_win1250.so libpq.a utf8_and_gbk.so
latin_and_mic.so libpq.so utf8_and_iso8859.so
libecpg.a libpq.so.2 utf8_and_iso8859_1.so
libecpg.so libpq.so.5 utf8_and_johab.so
libecpg.so.5 libpq.so.5.0 utf8_and_sjis.so
libecpg.so.5.2 pgxs utf8_and_uhc.so
libecpg_compat.a plpgsql.so utf8_and_win.so
libecpg_compat.so utf8_and_ascii.so
libecpg_compat.so.2 utf8_and_big5.so
Код:
root@iserver:/# ldconfig
root@iserver:/# ldconfig -p | grep pq
libpq.so.5 (libc6) => /usr/local/pgsql/lib/libpq.so.5
libpq.so (libc6) => /usr/local/pgsql/lib/libpq.so
Почему не обнаруживается libpq.so.2? Что я упустил?