Обсуждение: error while loading shared libraries: libpq++.so.4

Поиск
Список
Период
Сортировка

error while loading shared libraries: libpq++.so.4

От
Mark Tessier
Дата:
I get a "Method Not Allowed" when posting to a c++ script from an html page. After much tweaking, I finally did a
./login.cgiand got the following: 

./login.cgi: error while loading shared libraries: libpq++.so.4: cannot load shared object file: No such file or
directory

To remedy the problem, I went into /etc/profile and added the following:

LD_LIBRARY_PATH=/usr/local/psql/lib

This didn't work either, so does anyone have any idea how I can get my libraries to work

--
Thanks,

Mark



Re: error while loading shared libraries: libpq++.so.4

От
Cliff Wells
Дата:
On Tue, 25 Jun 2002 17:09:53 -0400
Mark Tessier wrote:

> I get a "Method Not Allowed" when posting to a c++ script from an html page.
After much tweaking, I finally did a ./login.cgi and got the following:
>
> ./login.cgi: error while loading shared libraries: libpq++.so.4: cannot load
shared object file: No such file or directory
>
> To remedy the problem, I went into /etc/profile and added the following:
>
> LD_LIBRARY_PATH=/usr/local/psql/lib
>
> This didn't work either, so does anyone have any idea how I can get my
libraries to work

Since you're on Linux, try editing /etc/ld.so.conf and adding the appropriate
path and then run ldconfig (as root).


--
Cliff Wells, Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 x308  (800) 735-0555 x308