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

Поиск
Список
Период
Сортировка
От Russell Smith
Тема Re: error while loading shared libraries: libpq.so.3
Дата
Msg-id 200502211949.25270.mr-russ@pws.com.au
обсуждение исходный текст
Ответ на error while loading shared libraries: libpq.so.3  ("Surabhi Ahuja " <surabhi.ahuja@iiitb.ac.in>)
Список pgsql-general
On Mon, 21 Feb 2005 06:17 pm, Surabhi Ahuja wrote:
>  i have written a program sample.c
> it is as folllows:
> #include<stdlib.h>
> #include<libpq-fe.h>
> int main()
> {
>         PGconn *myconnection = PQconnectdb("");
>         printf("Hi");
>         return 0;
> }
>
> I then compile this program using makefile
> make sample
> 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
> Please tell what the problem is..and how should I rectify it?
>
Your library is in /usr/local/pgsql/lib  this is obviously not in your ld.so.conf

do you still experience problems when you run
LDLIBRARY=/usr/local/pgsql/lib ./sample

Regards

Russell Smith.

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

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