Re: error while loading shared libraries: libpq.so.3

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: error while loading shared libraries: libpq.so.3
Дата
Msg-id 20050221072519.GA28993@winnie.fuhr.org
обсуждение исходный текст
Ответ на error while loading shared libraries: libpq.so.3  ("Surabhi Ahuja " <surabhi.ahuja@iiitb.ac.in>)
Список pgsql-general
On Mon, Feb 21, 2005 at 12:47:58PM +0530, Surabhi Ahuja  wrote:

> cc -I/usr/local/pgsql/include    sample.c  -L/usr/local/pgsql/lib -lpq -o sample
> I then run it....and it gives and error
> [indra:/homes/surabi] ./sample
> ./sample: error while loading shared libraries: libpq.so.3: cannot open shared object file: No such file or directory

You probably need to specify a runtime library search path option
like -R or -rpath (see your compiler or linker documentation).  For
example, the following might work:

cc -L/usr/local/pgsql/lib -R/usr/local/pgsql/lib ...

See also the manual page for the ldd command if your system has it.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

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

Предыдущее
От: "Surabhi Ahuja "
Дата:
Сообщение: error while loading shared libraries: libpq.so.3
Следующее
От: Russell Smith
Дата:
Сообщение: Re: error while loading shared libraries: libpq.so.3