Linux-Hams archive - July 1998: Re: Looking for libpq.so

Re: Looking for libpq.so

Richard Adams (lbxy.lejydbf@gw1.eranet.pl)
Sun, 5 Jul 1998 09:16:01 +0000 (GMT)


According to dfpcj.ibjhisu@mailit.tunk.net: While burning my CPU.
>
> total 268
> drwx------ 2 postgres users 1024 Oct 30 1997 ./
> drwxr-x--- 7 postgres users 1024 Nov 15 1997 ../
> -r-------- 1 postgres users 1092 Oct 30 1997 global1.bki.source
> -rw------- 1 postgres users 51462 Oct 30 1997 libpq.a
> lrwxrwxrwx 1 root root 10 Jul 1 21:55 libpq.so -> libpq.so.1
> -rw------- 1 postgres users 43342 Oct 30 1997 libpq.so.1
> -r-------- 1 postgres users 162923 Oct 30 1997 local1_template1.bki.source
> -r-------- 1 postgres users 2838 Oct 30 1997 pg_geqo.sample
> -r-------- 1 postgres users 3684 Oct 30 1997 pg_hba.conf.sample
>

Ah!, like Erwin Lemmers said, you havent installed the libs in thier proper
places, so possably rerunning ldconfig is of no use at all with the lib in
the above directory.

I suggest you copy libpq.so.1 to /usr/lib or /usr/local/lib those dir's
should already be defined in /etc/ld.so.conf, now rerun ldconfig.

I doubt very much if the program will ever look in the above directory for
lib's, possably explaning why it cant find libpq.so.

When you have run ldconfig, you could also check to see if the libs are
linked with 'ldconfig -v >foo.txt', the file foo.txt will contain a large
list of libs and symlinks and in which directory they are located.

'ldd <program>' will tell you what libs are needed to run that program.

'man ldconfig' will explane what ldconfig does and where it looks for libs.

Hope this is of help.

-- 
Regards Richard.
bas@innovate-it.ch