[Lazarus] Cannot load libpq.so

Leonardo M. Ramé l.rame at griensu.com
Tue Sep 25 20:53:26 CEST 2012


On 2012-09-25 20:47:57 +0200, Bernd wrote:
> 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.
> 
> --

Yes, I understand this, the problem is that I don't have control on how
my program loads the library, I just placed a PostgreSql Database connector
on a Data Module using Lazarus, so, the database connector must know
where's libpq.so.



-- 
Leonardo M. Ramé
http://leonardorame.blogspot.com




More information about the Lazarus mailing list