[Lazarus] Cannot load libpq.so

Bernd prof7bit at gmail.com
Tue Sep 25 20:47:57 CEST 2012


2012/9/25 Bernd <prof7bit at gmail.com>:
> 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

It also might be installed as something like libpq.so.1 while your
program is trying to load libpq.so. Then you might need to add a
symlink. This is normally not a problem when linking at link time
because ld would resolve the symlink (which only exists when the
headers are installed) and insert the real name (the so called soname)
into the binary but this does not work when you are loading
dynamically at runtime.




More information about the Lazarus mailing list