Re: Help Wanted for running C code

From: "Mark Pritchard" <mark(at)tangent(dot)net(dot)au>
To: "Pa O'Clerigh" <switswoo79(at)yahoo(dot)com>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Help Wanted for running C code
Date: 2002-03-13 00:07:53
Message-ID: EGECIAPHKLJFDEJBGGOBCEOMHOAA.mark@tangent.net.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

You should probably post this on -general or some other list, but I believe
the answer is that the postgres libraries cannot be found by the dynamic
library loader. You can fix this by:

* Including the PGINSTALLDIR/lib directory in your LD_LIBRARY_PATH

or

* Editing your /etc/ld.so.conf to include the above path and running
ldconfig

or

* symlinking from an existing library path (/usr/lib etc) to this file.

Regards,

Mark

> -----Original Message-----
> From: pgsql-hackers-owner(at)postgresql(dot)org
> [mailto:pgsql-hackers-owner(at)postgresql(dot)org]On Behalf Of Pa O'Clerigh
> Sent: Tuesday, 5 March 2002 10:27 PM
> To: pgsql-hackers(at)postgresql(dot)org
> Subject: [HACKERS] Help Wanted for running C code
>
>
> Hello help wanted asap for this one please.
> I have installed POstgres on my own machine and i am
> in charge of its settings.
>
> the problem is when i try and run a small piece of c
> code i get an error which states the following:
> cc testing_connection.c -L/usr/local/pgsql/lib -lpq
> -I/usr/local/pgsql/include -o fred -O0
> $ ./fred
> ./fred: error in loading shared libraries: libpq.so.2:
> cannot open shared object file: No such file or
> directory
>
>
> the program followed all the steps set out in the
> postgres documentation on building Libpq programs.
> But i still get the above??
> Any suggestions please
>
> __________________________________________________
> Do You Yahoo!?
> Try FREE Yahoo! Mail - the world's greatest free email!
> http://mail.yahoo.com/
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-03-13 00:08:50 Re: Lightweight locking primitive
Previous Message Robert E. Bruccoleri 2002-03-13 00:05:33 Re: bad performance on irix