error while loading shared libraries: libpq.so.3

From: "Surabhi Ahuja " <surabhi(dot)ahuja(at)iiitb(dot)ac(dot)in>
To: <pgsql-general(at)postgresql(dot)org>
Subject: error while loading shared libraries: libpq.so.3
Date: 2005-02-21 07:17:58
Message-ID: CE5C48E227F8ED4990FAC4332100ADC621B4FD@EVS.iiitb.ac.in
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2005-02-21 07:25:19 Re: error while loading shared libraries: libpq.so.3
Previous Message Markus Wollny 2005-02-21 06:11:48 Ways to speed up dump&reload