[Lazarus] Cannot load libpq.so

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


On 2012-09-25 18:54:11 +0000, Mark Morgan Lloyd wrote:
> zeljko wrote:
> >On Tuesday 25 of September 2012 19:56:52 Leonardo M. Ramé wrote:
> >>Hi, I've installed PostgreSql from sources on a Linux machine, it's
> >>installed on /usr/local/pgsql. It's libraries are in
> >>/usr/local/pgsql/lib, and I updated my /etc/ld.so.conf to look there,
> >>but still, when I run a simple testing app written with lazarus I'm
> >>getting this:
> >>
> >>EInOutError : Can not load PostgreSQL client library "libpq.so". Check
> >>your installation
> >>
> >>What can be happening?.
> >
> >Loader does not see  /usr/local/pgsql/lib directory
> >try export LD_LIBRARY_PATH=$LD_LIBRARY_PATH: /usr/local/pgsql/lib
> >from terminal and then start your app ./myapplication
> 
> Do you actually /have/ a libpq.so? I've usually had to set up a
> symlink to get the names right.
> 
> As I understand it, there's an optional parameter on the library
> initialisation call to specify the exact library name, and there was
> recent discussion about how best to expose this to programmers via
> the LCL.
> 
> -- 
> Mark Morgan Lloyd
> markMLl .AT. telemetry.co .DOT. uk
> 
> [Opinions above are the author's, not those of his employers or colleagues]
> 

libpq.so is a symlink to libpq.so.5.4, yes, I have both.

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




More information about the Lazarus mailing list