[Lazarus] Cannot load libpq.so

zeljko zeljko at holobit.net
Wed Sep 26 07:42:29 CEST 2012


On Tuesday 25 of September 2012 20:42:18 Leonardo M. Ramé wrote:
> On 2012-09-25 20:35:43 +0200, Bernd wrote:
> > 2012/9/25 Leonardo M. Ramé <l.rame at griensu.com>:
> > > Do you know a way to know where's the loader looking for libraries?,
> > > from command line.
> > 
> > ldconfig --print-cache
> > 
> > Your library should appear there if installed correctly
> > 
> > --
> 
> Here's the result of ldconfig:
> 
> /sbin/ldconfig --print-cache|grep libpq
> libpqwalreceiver.so (libc6) => /usr/local/pgsql/lib/libpqwalreceiver.so
> libpq.so.5 (libc6) => /usr/local/pgsql/lib/libpq.so.5
> libpq.so (libc6) => /usr/local/pgsql/lib/libpq.so
> 
> It seems to be installed correctly.

If you compiled it by yourself then something goes wrong probably. Maybe 
you've compiled 64bit lib and tried to load it with 32bit app ?
You can easy test that. Create new application, include dynlibs and try to 
load that library in some event (eg. ButtonOnClick). According to your posts 
ld.conf contains valid entries and libpq.so is in the path, so something else 
is wrong .

zeljko




More information about the Lazarus mailing list