pgsql problems.

Поиск
Список
Период
Сортировка
От Jeff Cain
Тема pgsql problems.
Дата
Msg-id 3CA0B9B1.6090804@kearneydev.com
обсуждение исходный текст
Список pgadmin-support
Followup on last message.

ldd can't find the library even though ldconfig can.  It is listed in
ld.so.conf properly and ldconfig was run.

[root@tau /tmp]# perl -c test2.pm
Can't load '/usr/lib/perl5/site_perl/i386-linux/auto/Pg/Pg.so' for
module Pg: libpq.so.2.1: cannot open shared object file: No such file or
directory at /usr/lib/perl5/i386-linux/5.00405/DynaLoader.pm line 169.

  at test2.pm line 2
BEGIN failed--compilation aborted at test2.pm line 2.

[root@tau /tmp]# cat test2.pm
#!/usr/bin/perl -w
use Pg;
1;

[root@tau /tmp]# ldd /usr/lib/perl5/site_perl/i386-linux/auto/Pg/Pg.so
         libpq.so.2.1 => not found

[root@tau /tmp]# ldconfig -v | less
    (things removed)
/home/pgsql713/lib:
         libpgeasy.so.2 => libpgeasy.so.2.1
         libecpg.so.3 => libecpg.so.3.2.0
         libpq.so.2 => libpq.so.2.1
         (things removed)

[root@tau /tmp]# cat /etc/ld.so.conf
/usr/i486-linuxaout/lib
/usr/X11R6/lib
/usr/lib
/usr/i486-linux-libc5/lib
/usr/local/lib
/home/pgsql713/lib

[root@tau /tmp]# ls -l /home/pgsql713/lib/libpq*
-rw-r--r--   1 root     root        63892 Mar 26 12:06
/home/pgsql713/lib/libpq.a
lrwxrwxrwx   1 root     root           12 Mar 26 12:06
/home/pgsql713/lib/libpq.so -> libpq.so.2.1
lrwxrwxrwx   1 root     root           12 Mar 26 12:06
/home/pgsql713/lib/libpq.so.2 -> libpq.so.2.1
-rwxr-xr-x   1 root     root        56295 Mar 26 12:06
/home/pgsql713/lib/libpq.so.2.1

===
=== Copying libpq.so.2.1 to /usr/lib works fine...

[root@tau /tmp]# ln -s /home/pgsql713/lib/libpq.so.2.1 /usr/lib
[root@tau /tmp]# ldconfig
[root@tau /tmp]# perl -c test2.pm
test2.pm syntax OK

[root@tau /tmp]# ldd /usr/lib/perl5/site_perl/i386-linux/auto/Pg/Pg.so
         libpq.so.2.1 => /usr/lib/libpq.so.2.1 (0x40015000)
         libcrypt.so.1 => /lib/libcrypt.so.1 (0x40022000)
         libresolv.so.2 => /lib/libresolv.so.2 (0x40051000)
         libnsl.so.1 => /lib/libnsl.so.1 (0x4005f000)
         libc.so.6 => /lib/libc.so.6 (0x40065000)
         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

============

Why can't ldd find a library when ldconfig can?  It is listed in
ld.so.conf properly
and this has worked before.  Any advise would be appreciated.



В списке pgadmin-support по дате отправления:

Предыдущее
От: Jeff Cain
Дата:
Сообщение: Perl dies with pgsql
Следующее
От: "Thomas Sandford"
Дата:
Сообщение: Quotes and functions