[fpc-pascal] Re: Cannot load libpq.dylib on Mac OS X
Joao Morais
jcmoraisjr at gmail.com
Sun Aug 4 17:39:09 CEST 2013
On Sat, Aug 3, 2013 at 9:07 PM, Joao Morais <jcmoraisjr at gmail.com> wrote:
> $ ./pqconsole
> An unhandled exception occurred at $000CA921 :
> EInOutError : Can not load PostgreSQL client library "libpq.dylib".
> Check your installation.
> ---------------
>
> What I have done so far:
>
> 1. export DYLD_LIBRARY_PATH=/Path/To/libpq.dylib/dir
> (using Postgresql.app 9.2.4 from Heroku)
>
> 2. export DYLD_LIBRARY_PATH=.
> and copying the libpq.dylib to the binary dir
>
> 3. Installed pg 9.2.4 from EnterpriseDB package
>
> 4. Restarted the SO =)
5. Compiling with "ppcx64" instead of "fpc" in order to generate a 64
bit application. Now it works!
Thanks Silvio pointing out some links in private.
Joao Morais
More information about the fpc-pascal
mailing list