Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Databases
»
Postgresql woes
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
For-in loop over constant...
by
VisualLab
[
Today
at 01:49:14 pm]
BUG REPORT: Unable to gen...
by
gasensor
[
Today
at 01:35:19 pm]
Lazarus for Windows on aa...
by
VisualLab
[
Today
at 01:27:12 pm]
The weird Rewrite bug
by
Kays
[
Today
at 01:23:40 pm]
FpDebug unexpected Assemb...
by
440bx
[
Today
at 12:54:43 pm]
Inherits forms and releas...
by
superc
[
Today
at 12:54:22 pm]
InstallAware Using Lazaru...
by
VisualLab
[
Today
at 12:34:43 pm]
Arabic text, problem on L...
by
Zaher
[
Today
at 12:34:05 pm]
RayLib 5.0
by
Guva
[
Today
at 11:25:40 am]
CocoaInt.CocoaIconUse no ...
by
MISV
[
Today
at 09:20:40 am]
Azure sql database will n...
by
paweld
[
Today
at 07:41:17 am]
Does anyone know why this...
by
TYDQ
[
Today
at 06:39:17 am]
TBGRABitmap.TextSize retu...
by
hedgehog
[
Today
at 06:07:46 am]
AI, NLP and CAI: Text Gen...
by
schuler
[
Today
at 04:26:36 am]
Demoscene Square dot flag...
by
KodeZwerg
[
Today
at 03:47:30 am]
How does Castle Game Eng...
by
michalis
[
Today
at 02:51:40 am]
Have anyone develop UEFI ...
by
440bx
[April 16, 2024, 09:39:52 pm]
Lazarus project made on M...
by
Odacir
[April 16, 2024, 08:56:58 pm]
Is it possible to support...
by
PascalDragon
[April 16, 2024, 08:51:36 pm]
CORBA interface and Varia...
by
PascalDragon
[April 16, 2024, 08:35:43 pm]
Macros confuse error mess...
by
PascalDragon
[April 16, 2024, 08:13:25 pm]
Form scaling
by
fxeconomist
[April 16, 2024, 08:09:39 pm]
Post your internal error ...
by
Eugene Loza
[April 16, 2024, 07:12:35 pm]
C-evo: New Horizons 1.3.0...
by
Chronos
[April 16, 2024, 06:32:41 pm]
How can i make this windo...
by
Handoko
[April 16, 2024, 06:23:43 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Postgresql woes (Read 1403 times)
Trenatos
Hero Member
Posts: 535
Postgresql woes
«
on:
August 06, 2020, 08:38:52 am »
I've just installed Postgresql 12 on my Windows 10 dev machine, but I can't get my program to recognize the driver.
When I place it in the same directory as the executable, I get
Code: Pascal
[Select]
[+]
[-]
Can
not
load PostgreSQL client
library
"libpq
.
dll
"
When I try to use the SQLDBLibraryLoader and specify the path I get the same message.
I used Stack Builder to get the x64 driver.
Anyone else run into this issue?
«
Last Edit: August 06, 2020, 06:09:25 pm by Trenatos
»
Logged
marcov
Administrator
Hero Member
Posts: 11446
FPC developer.
Re: Postgresql woes
«
Reply #1 on:
August 06, 2020, 09:18:58 am »
So... do you generate a 64-bit EXE ?
Logged
MarkMLl
Hero Member
Posts: 6683
Re: Postgresql woes
«
Reply #2 on:
August 06, 2020, 11:36:03 am »
Is libpq.dll on the system? Does the variant of PostgreSQL you installed include psql, and does it run?
MarkMLl
Logged
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories:
https://github.com/MarkMLl?tab=repositories
marcov
Administrator
Hero Member
Posts: 11446
FPC developer.
Re: Postgresql woes
«
Reply #3 on:
August 06, 2020, 11:57:59 am »
And note that the client (pqsql.dll) doesn't have to match the server in 32/64-bit bitness.
But the dll
must
match the generated application 32/64-bit status.
Logged
korba812
Sr. Member
Posts: 394
Re: Postgresql woes
«
Reply #4 on:
August 06, 2020, 12:32:36 pm »
Another note is that libpq.dll may depend on other libraries (in my case libcurl.dll, libeay32.dll, libiconv.dll, libintl.dll, libpq.dll, libxml2.dll, libxslt.dll ,ssleay32.dll, zlib1.dll)
Logged
MarkMLl
Hero Member
Posts: 6683
Re: Postgresql woes
«
Reply #5 on:
August 06, 2020, 03:07:09 pm »
And yet another note is that on at least some platforms, you might need to state explicitly where the dynamic libraries may be found.
I mention that since even if it doesn't apply to current Windows, if we're talking about this problem we might as well be complete for the next time Google decides to turn up an unexpected reference :-)
MarkMLl
Logged
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories:
https://github.com/MarkMLl?tab=repositories
Trenatos
Hero Member
Posts: 535
Re: Postgresql woes
«
Reply #6 on:
August 06, 2020, 05:28:01 pm »
I'm generating a 64bit exe.
I just made a new gui project, added a button and a TSQLDBLibraryLoader, set the connection type to Postgresql, and the buttons click handler sets enabled to true.
When I start the program I immediately get an error "Invalid connection type:'PostgreSQL'" (Before the form is even visible)
Logged
Trenatos
Hero Member
Posts: 535
Re: Postgresql woes
«
Reply #7 on:
August 06, 2020, 06:09:17 pm »
I DID get it working using ZeosDB, so that's good. But could not get it working with the Lazarus bundled functionality.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Databases
»
Postgresql woes
TinyPortal
© 2005-2018