Libraries for lipq.dll and libpq81.dll cannot be found

In this forum we will discuss things relating the ZEOSLib 6.6.x stable versions

Moderators: gto, EgonHugeist

Post Reply
vfclists
Fresh Boarder
Fresh Boarder
Posts: 15
Joined: 30.10.2007, 00:07

Libraries for lipq.dll and libpq81.dll cannot be found

Post by vfclists »

When I try to run a program developed with Lazarus on windows I get an error that libpq.dll and libpq81.dll cannot be found.

I downloaded the latest postgresql 8.4 to ensure the libraries would be present but it didn't work. So I extracted one from an older pgAdmin 3 installer.

That works inside the IDE but when I try to run the program outside the I get the same error, and also one about a missing comerr32.dll.

Is there some package that contains all of these?

Does Zeoslib work with any Postgres 8.x libraries or only the one present when it is compiled?

/vfclists
User avatar
Pitfiend
Senior Boarder
Senior Boarder
Posts: 68
Joined: 12.12.2009, 07:27

Post by Pitfiend »

I'm not really sure about, but I think you need to provide the dll in the system search path or in the same directory as your application.

When I try the mysql ones, I did that and all runs fine. Just provide the right ones for you case and db.
cariad
Junior Boarder
Junior Boarder
Posts: 36
Joined: 20.10.2005, 14:07

Post by cariad »

User avatar
simpsomboy
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: 14.09.2005, 06:05

Post by simpsomboy »

I am having the same problem... and the libraries are just in the same folder as executable, as well in windows paths.

I am using the latest 8.4.4-1 libpq.dll. zeos needs a previous version?
User avatar
simpsomboy
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: 14.09.2005, 06:05

Post by simpsomboy »

I forgot to mention.... also inside IDE I cannot connect.
seawolf
Zeos Dev Team *
Zeos Dev Team *
Posts: 385
Joined: 04.06.2008, 19:50
Contact:

Post by seawolf »

Which is the error message?

Because you need more dlls than the only libpq.dll
touchring
Fresh Boarder
Fresh Boarder
Posts: 9
Joined: 01.07.2009, 19:55

Post by touchring »

I've copied all the DLLs in C:\Program Files\PostgreSQL\8.4\bin to my delphi app folder, yet i am still getting this error -

Can't connect to database. None of the dynamic libraries can be found: libpq81.dll, libpq.dll

Any thoughts? Thanks. :)
marcov
Senior Boarder
Senior Boarder
Posts: 95
Joined: 24.06.2010, 09:17

Post by marcov »

Try to put them in the path, specially for the IDE this could matter, because the working dir of the IDE is not very well defined under Delphi.

Under Lazarus it is compiletime and runtime defined to be the place where the .exe ends up, and afaik undefined otherwise.

I took the dlls from pgadmin3 installation btw, and they worked fine.
adragan2
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 18.03.2010, 09:39

Post by adragan2 »

I had the same problem.
In the IDE put at Project->Options->Search Path the path to the ..\Postgres\Bin directory.
To have it perform Ok at run-time you have to go to
Start->Settings->Control Panel->System->Advanced->System Variables and
add the path to the ..\Postgres\Bin directory from your computer.
Post Reply