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]

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to