Re: Help Wanted for running C code

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
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:36:10
Message-ID: Pine.LNX.4.30.0203121934460.760-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Pa O'Clerigh writes:

> 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

Add -Wl,-rpath,/usr/local/pgsql/lib, or set and export
LD_LIBRARY_PATH=/usr/local/psgql/lib, or modify /etc/ld.so.conf and run
ldconfig.

--
Peter Eisentraut peter_e(at)gmx(dot)net

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Matthew Kirkwood 2002-03-13 00:51:37 Re: Lightweight locking primitive
Previous Message Patrick Welche 2002-03-13 00:10:12 Re: Help Wanted for running C code