From: | Jeff Cain <cain(at)kearneydev(dot)com> |
---|---|
To: | pgadmin-support(at)postgresql(dot)org |
Subject: | pgsql problems. |
Date: | 2002-03-26 18:10:57 |
Message-ID: | 3CA0B9B1.6090804@kearneydev.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)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(at)tau /tmp]# cat test2.pm
#!/usr/bin/perl -w
use Pg;
1;
[root(at)tau /tmp]# ldd /usr/lib/perl5/site_perl/i386-linux/auto/Pg/Pg.so
libpq.so.2.1 => not found
[root(at)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(at)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(at)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(at)tau /tmp]# ln -s /home/pgsql713/lib/libpq.so.2.1 /usr/lib
[root(at)tau /tmp]# ldconfig
[root(at)tau /tmp]# perl -c test2.pm
test2.pm syntax OK
[root(at)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.
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Sandford | 2002-03-27 15:21:08 | Quotes and functions |
Previous Message | Jeff Cain | 2002-03-26 18:03:05 | Perl dies with pgsql |