Re: Fw: Missing Shared Libraries

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Fw: Missing Shared Libraries
Дата
Msg-id 20010314100616.C73202A682@mainbox.archonet.com
обсуждение исходный текст
Ответ на Fw: Missing Shared Libraries  ("keith" <keith@gmetech.com>)
Список pgsql-general
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

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

Предыдущее
От: "keith"
Дата:
Сообщение: Re: Re: Fw: Missing Shared Libraries
Следующее
От: Jan Ploski
Дата:
Сообщение: Text search