I don't about other O.S.s, but I still couldn't be able to compile and run a simple database program using Lazarus and PostgreSql yet!
The first try gave no compiling errors but the infamous message "Can not find posgreSql client. Is it installed (libpq.so)?". It is obviously installed, but it's name is not libpq.so but libpq.dylib.
I tried everything, from renaming the libpq to copying it to other directories present on the search path, but nope!
As a last try, after googling a lot I found a guy that recommended to patch postgres3dyn.pp and dllistdyn.pp, recompile and try again.
I then edited these files, correcting the ".so"issue and the "posgresql" for "PostgresSql" and remaking and installing them, but now Lazarus says:
PPU Loading /usr/local/lib/fpc/2.4.4/units/i386-darwin/postgres/pqconnection.ppu
PPU Source: pqconnection.pp not found
Recompiling pqconnection, checksum changed for postgres3dyn
registersqldb.pas(38,3) Fatal: Can't find unit pqconnection used by registersqldb
As you can imagine, I tried everything from changing the paths to include those of the missing unit to copying it to the project's directory, passing by many clean rebuilds with no success.
It seems if you correct a piece here there's another hole appearing there...
Could anyone put some light on this issue?
Thanks,
Cesar