keith <[EMAIL PROTECTED]> said:

> ----- Original Message ----- 
> From: keith 
> To: [EMAIL PROTECTED] 
> Sent: Wednesday, March 14, 2001 3:51 PM
> Subject: Missing Shared Libraries
> 
> 
> I have finally got PostgreSQL running on a Red Hat Linux machine, mostly because of 
>the help of some kind people on this mailing list.
>  Next question please. When I try and run /usr/local/pgsql/bin/psql or 
>/usr/local/pgsql/bin/createdb test I get an error that says:
> "error in loading shared libraries: libpq.so.2.1: cannot open shared object file: No 
>such file or directory"
> 
> The file is located at /usr/local/pgsql/lib/libpq.so.2.1 so I don't understand.
> Any ideas?
> 

Yep - you need to tell the Linux linker to check that directory for libraries. Since 
you're on RedHat, edit /etc/ld.so.conf and add this directory to the end of the file.

Then run /sbin/ldconfig (as root) to update the cache, and check with /sbin/ldconfig -p

If you have an "installation.html" file it should cover this there. The key thing when 
you install from source is to read *all* the instructions (twice, making notes) 
otherwise, without experience the error messages can be a little bewildering.

- Richard Huxton

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Reply via email to