[Lazarus] Postgres Cannot connect

Tom Russell tsrdatatech at gmail.com
Mon Nov 21 18:07:01 CET 2011


Weird that command is said that its unknown. Is that for OSX or linux?

Thanks , Ill try the other option as well.



On Mon, Nov 21, 2011 at 12:02 PM, Joost van der Sluis <joost at cnoc.nl> wrote:
> On Mon, 2011-11-21 at 11:20 -0500, Tom Russell wrote:
>> Using FPC 2.44 and the file it cannot find is libpq.dylib which is in
>> Library/PostGreSQL/9.1/Bin
>
> My guess is that that path is not in you library-search path. Try 'ld
> --verbose' on the commandline. See which search-directories are used,
> and add a symlink in one of them.
>
> Or you can add the postgres3dyn unit to your uses-list, and call
> 'InitialisePostgres3('Library/PostGreSQL/9.1/Bin/libpq.dylib');' before
> you do anything db-related.
>
> --
> My Lazarus blog: http://www.lazarussupport.com/lazarus/weblog
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>




More information about the Lazarus mailing list