[Lazarus] Postgres Dlls not found
Marc Weustink
marc.weustink at cuperus.nl
Thu May 29 15:47:42 CEST 2008
Dave Coventry wrote:
> I'm flumoxed!
>
> My app fails with the error "Cannot load Postgres Client. Is it
> installed? (libpg.dll)".
>
> I've been developing my app on my laptop and initiallly was unable to
> get PQConnection working as it complained that Postgres was not
> installed.
>
> I eventually loaded pgadmin3 onto my laptop, but the problem was only
> cured when I copied the ALL of the DLLs in the pgadmin install into my
> System32 folder.
Better not copy he dlls, just add the postgres/bin dir to your path
(mycomputer-properties-advanced-environmentvars).
(sometimes you need to restart the explorer to load your new envirenment)
> I wasn't all that happy about it, but felt that I could live with
> having to copy 18 DLL files into the client's System32 directory.
>
> However, the clients machines have all failed with the above error.
>
> Copying the DLLs into system32 didn't help. And niether did installing
> pgadmin3, the error persists.
did running pgadmin3 work ?
> Does anyone have any idea why? Where does PQConnection expect to find the DLLs?
Like any other app as specified here:
http://msdn.microsoft.com/en-us/library/ms682586(VS.85).aspx
Marc
More information about the Lazarus
mailing list