[Lazarus] Cannot load libpq.so

zeljko zeljko at holobit.net
Tue Sep 25 20:07:28 CEST 2012

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
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH: /usr/local/pgsql/lib
from terminal and then start your app ./myapplication


More information about the Lazarus mailing list