Re: [GENERAL] error while loading shared libraries: libpq.so.3

2005-02-22 Thread Edmund Bacon
[EMAIL PROTECTED] (Russell Smith) writes: > On Mon, 21 Feb 2005 08:05 pm, Surabhi Ahuja wrote: > > do you still experience problems when you run > > LDLIBRARY=/usr/local/pgsql/lib ./sample > > Note there is no SPACE in the example I have given. > LDLIBRARY=/usr/local... > > NOT > > LDLIBRARY =

Re: [GENERAL] error while loading shared libraries: libpq.so.3

2005-02-21 Thread phil campaigne
while loading shared libraries: libpq.so.3 *** Your mail has been scanned by InterScan VirusWall. ***-*** On Mon, 21 Feb 2005 06:17 pm, Surabhi Ahuja wrote: i have written a program sample.c it is as folllows: #include #include int main() { PGconn

Re: [GENERAL] error while loading shared libraries: libpq.so.3

2005-02-21 Thread Michael Fuhr
On Mon, Feb 21, 2005 at 02:22:20PM +0530, Surabhi Ahuja wrote: > I give the following command now to compile sample.c > gcc -o sample sample.c -I/usr/local/pgsql/include -L/usr/local/pgsql/lib > -rpath/usr/local/pgsql/lib - lpq > > it gives this message: > gcc: unrecognized option `-rpath/usr/

Re: [GENERAL] error while loading shared libraries: libpq.so.3

2005-02-21 Thread Russell Smith
To: Surabhi Ahuja > Cc: pgsql-general@postgresql.org > Subject: Re: [GENERAL] error while loading shared libraries: libpq.so.3 > > > > *** > Your mail has been scanned by InterScan VirusWall. > ***-*** > > > On Mon, 21 Feb 2005 06:1

Re: [GENERAL] error while loading shared libraries: libpq.so.3

2005-02-21 Thread Surabhi Ahuja
Title: Re: [GENERAL] error while loading shared libraries: libpq.so.3 it now says:   i do the following   make sample LDLIBRARY = /usr/local/pgsql/lib ./sample LDLIBRARY: Command not found.  From: Russell Smith [mailto:[EMAIL PROTECTED]Sent: Mon 2/21/2005 2:19 PMTo: Surabhi Ahuja Cc

Re: [GENERAL] error while loading shared libraries: libpq.so.3

2005-02-21 Thread Russell Smith
On Mon, 21 Feb 2005 06:17 pm, Surabhi Ahuja wrote: > i have written a program sample.c > it is as folllows: > #include > #include > int main() > { > PGconn *myconnection = PQconnectdb(""); > printf("Hi"); > return 0; > } > > I then compile this program using makefile > mak

Re: [GENERAL] error while loading shared libraries: libpq.so.3

2005-02-21 Thread Surabhi Ahuja
Title: Re: [GENERAL] error while loading shared libraries: libpq.so.3 I give the following command now to compile sample.c gcc -o sample sample.c -I/usr/local/pgsql/include -L/usr/local/pgsql/lib -rpath/usr/local/pgsql/lib - lpq   it gives this message:gcc: unrecognized option `-rpath

Re: [GENERAL] error while loading shared libraries: libpq.so.3

2005-02-20 Thread Michael Fuhr
On Mon, Feb 21, 2005 at 12:47:58PM +0530, Surabhi Ahuja wrote: > cc -I/usr/local/pgsql/includesample.c -L/usr/local/pgsql/lib -lpq -o > sample > I then run itand it gives and error > [indra:/homes/surabi] ./sample > ./sample: error while loading shared libraries: libpq.so.3: cannot open

[GENERAL] error while loading shared libraries: libpq.so.3

2005-02-20 Thread Surabhi Ahuja
 i have written a program sample.cit is as folllows: #include#include int main(){    PGconn *myconnection = PQconnectdb("");    printf("Hi");    return 0;} I then compile this program using makefile make samplecc -I/usr/local/pgsql/include    sample.c  -L/usr/local/pgsql/lib -l

Re: [GENERAL] error while loading shared libraries: libpq.so.3

2003-08-01 Thread Richard Huxton
On Friday 01 August 2003 12:54, Elielson Fontanezi wrote: > Hi all! > > I would like some suggestion on how to solve that: > > postgres$ createdb postgres > /usr/local/postgresql-7.3.4/bin/psql: error while loading shared libraries: > libpq.so.3: cannot open shared object file: No such file or

[GENERAL] error while loading shared libraries: libpq.so.3

2003-08-01 Thread Elielson Fontanezi
Hi all!       I would like some suggestion on how to solve that:   postgres$ createdb postgres/usr/local/postgresql-7.3.4/bin/psql: error while loading shared libraries: libpq.so.3: cannot open shared object file: No such file or directorycreatedb: database creation failedpostgres$postgres$