error while loading shared libraries: libpq.so.3 - Mailing list pgsql-general

From Surabhi Ahuja
Subject error while loading shared libraries: libpq.so.3
Date
Msg-id CE5C48E227F8ED4990FAC4332100ADC621B4FD@EVS.iiitb.ac.in
Whole thread Raw
Responses Re: error while loading shared libraries: libpq.so.3
Re: error while loading shared libraries: libpq.so.3
List 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?

pgsql-general by date:

Previous
From: "Markus Wollny"
Date:
Subject: Ways to speed up dump&reload
Next
From: Michael Fuhr
Date:
Subject: Re: error while loading shared libraries: libpq.so.3