keith <keith@gmetech.com> said:
> ----- Original Message -----
> From: keith
> To: pgsql-general-owner@postgresql.org
> 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
thismailing list.
> Next question please. When I try and run /usr/local/pgsql/bin/psql or /usr/local/pgsql/bin/createdb test I get an
errorthat 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.confand 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