| From: | Patrick Welche <prlw1(at)newn(dot)cam(dot)ac(dot)uk> |
|---|---|
| To: | Pa O'Clerigh <switswoo79(at)yahoo(dot)com> |
| Cc: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: Help Wanted for running C code |
| Date: | 2002-03-13 00:10:12 |
| Message-ID: | 20020313001012.A10516@quartz.newn.cam.ac.uk |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Tue, Mar 05, 2002 at 03:26:46AM -0800, Pa O'Clerigh wrote:
...
> 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
...
What does
ldd fred
file fred
tell you? Maybe
cc testing_connection -L/usr/local/pgsql/lib -Wl,-R/usr/local/pgsql/lib -lpq\
-I/usr/local/pgsql/include -o fred -O0
?
Patrick
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2002-03-13 00:36:10 | Re: Help Wanted for running C code |
| Previous Message | Bruce Momjian | 2002-03-13 00:08:50 | Re: Lightweight locking primitive |