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
Offical launch of the 1 B...
by
Gustavo 'Gus' Carreno
[
Today
at 12:50:46 am]
what to do if my target M...
by
Laksen
[
Today
at 12:49:12 am]
For-in loop over constant...
by
ASerge
[
Today
at 12:36:09 am]
Converting a string/index...
by
TRon
[April 18, 2024, 11:56:37 pm]
exclude ALL packages from...
by
PascalDragon
[April 18, 2024, 11:33:29 pm]
Demoscene The Champs Crac...
by
KodeZwerg
[April 18, 2024, 11:29:50 pm]
Poll: Watches and Display...
by
440bx
[April 18, 2024, 10:55:14 pm]
Database standards OR Am ...
by
dseligo
[April 18, 2024, 10:50:26 pm]
BUG REPORT: Unable to gen...
by
PascalDragon
[April 18, 2024, 10:24:23 pm]
How to: create DLL file f...
by
paule32
[April 18, 2024, 10:23:59 pm]
Have anyone develop UEFI ...
by
PascalDragon
[April 18, 2024, 10:14:15 pm]
Lazarus for Windows on aa...
by
PascalDragon
[April 18, 2024, 10:09:10 pm]
The weird Rewrite bug
by
PascalDragon
[April 18, 2024, 09:58:53 pm]
Assign (textfile) not com...
by
PascalDragon
[April 18, 2024, 09:51:50 pm]
Question for people who h...
by
PascalDragon
[April 18, 2024, 09:44:32 pm]
Linux Workspaces -- StayO...
by
AmatCoder
[April 18, 2024, 08:34:20 pm]
I just released a commerc...
by
Seenkao
[April 18, 2024, 07:57:21 pm]
Access violation when re-...
by
TRon
[April 18, 2024, 07:37:31 pm]
[SOLVED] assembler name i...
by
TRon
[April 18, 2024, 07:26:33 pm]
A fairly simple sound sol...
by
KodeZwerg
[April 18, 2024, 07:01:52 pm]
Step-into the field sette...
by
Martin_fr
[April 18, 2024, 06:54:19 pm]
[Fun Fact] PNG and Micros...
by
Ten_Mile_Hike
[April 18, 2024, 06:24:19 pm]
HTTP/2+HTTP/1.1+WebSocket...
by
iLya2IK
[April 18, 2024, 06:14:30 pm]
Improvement of TFPTimerTh...
by
AlexTP
[April 18, 2024, 05:56:38 pm]
Arabic text, problem on L...
by
nouzi
[April 18, 2024, 05:21:27 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Postgresql woes (Read 1411 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: 11452
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: 6686
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: 11452
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: 6686
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