[solved] ZConnection.libraryLocation
Moderators: gto, EgonHugeist, olehs
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
elidorio2,
hey Edson, i'm not able to see what's going wrong! Everything is fine. So i'm sure that your problem can only be uncompatible dll's on this PC. So please scan this system for these dll's, be sure the dll you want to use is unique. Delete all dll's which are not from the bin directory. Evantually change the path envirnoment variable and add the PostgreSQL bin dir. Or follow ism's instructions.
Michael
hey Edson, i'm not able to see what's going wrong! Everything is fine. So i'm sure that your problem can only be uncompatible dll's on this PC. So please scan this system for these dll's, be sure the dll you want to use is unique. Delete all dll's which are not from the bin directory. Evantually change the path envirnoment variable and add the PostgreSQL bin dir. Or follow ism's instructions.
Michael
Best regards, Michael
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/
problem Solved
Hello Michal,
Really missing the Visual C + + 2010 Redistributable Package.
Problem solved.
Thank you all,
Edson
Really missing the Visual C + + 2010 Redistributable Package.
Problem solved.
Thank you all,
Edson
-
- Fresh Boarder
- Posts: 3
- Joined: 15.10.2012, 07:07
Hello everybody,
I'm a brand new Lazarus/ZeosLib/PostgreSQL user and I do have the same problems as described in this thread.
This is the configuration, everything 64-bit:
- Windows 7 SP1
- PostgreSQL 9.0.10
- ZeosLib 7.0.1-beta
- Lazarus IDE v1.0.2 with FPC 2.6.0
I made a small project with a ZConnection component. And when TZConnection.Connected is set to True, I will get two error messages.
1. The program can't start because libintl-8.dll is missing from your computer. Try reinstalling the program to fix this problem.
2. None of the dynamic libraries can be found or is not loadable: C:\Program Files (x86)\PostgreSQL\9.0\bin\libpq.dll !
Use TZConnection.LibraryLocation if the location is invalid.
I did try all the solutions provided in this thread. Copying the dll's to the project folder, installing Visual C++ Redistributable, etc. I also did reinstall PostgreSQL but nothing changed (except for losing my database because I forgot to make a backup:)).
Why do I get error message 1? Is this something from an older PostgreSQL 8 installation? Because I did have that on my laptop a couple of months ago before I did upgrade to version 9.0.10. And do you think if I get rid of that one, error message 2 will also disappear?
I'm a brand new Lazarus/ZeosLib/PostgreSQL user and I do have the same problems as described in this thread.
This is the configuration, everything 64-bit:
- Windows 7 SP1
- PostgreSQL 9.0.10
- ZeosLib 7.0.1-beta
- Lazarus IDE v1.0.2 with FPC 2.6.0
I made a small project with a ZConnection component. And when TZConnection.Connected is set to True, I will get two error messages.
1. The program can't start because libintl-8.dll is missing from your computer. Try reinstalling the program to fix this problem.
2. None of the dynamic libraries can be found or is not loadable: C:\Program Files (x86)\PostgreSQL\9.0\bin\libpq.dll !
Use TZConnection.LibraryLocation if the location is invalid.
I did try all the solutions provided in this thread. Copying the dll's to the project folder, installing Visual C++ Redistributable, etc. I also did reinstall PostgreSQL but nothing changed (except for losing my database because I forgot to make a backup:)).
Why do I get error message 1? Is this something from an older PostgreSQL 8 installation? Because I did have that on my laptop a couple of months ago before I did upgrade to version 9.0.10. And do you think if I get rid of that one, error message 2 will also disappear?
-
- Fresh Boarder
- Posts: 3
- Joined: 15.10.2012, 07:07
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
JanPijnacker,
TZConnection.LibraryLocation is able to load !single! dll's from different path's. So you're able to load a library like libmysql.dll, sqlite3.dll, fbclient.dll with different version and you can simply make an update application from an old server to a new one.
PostgreSQL uses several dll's which the system expects in the default path environment variables. This was the issue you had. All servers which use a single library can handle this except postgresql. I'm sorry but this borders we can't break...
TZConnection.LibraryLocation is able to load !single! dll's from different path's. So you're able to load a library like libmysql.dll, sqlite3.dll, fbclient.dll with different version and you can simply make an update application from an old server to a new one.
PostgreSQL uses several dll's which the system expects in the default path environment variables. This was the issue you had. All servers which use a single library can handle this except postgresql. I'm sorry but this borders we can't break...
Last edited by EgonHugeist on 16.10.2012, 22:31, edited 1 time in total.
Best regards, Michael
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/
-
- Fresh Boarder
- Posts: 3
- Joined: 15.10.2012, 07:07
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
rafakwolf,
which compiler? 32Bit or 64Bit? And which system paths do you mean?
which compiler? 32Bit or 64Bit? And which system paths do you mean?
Best regards, Michael
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/