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
lazarus-project_3.2.0-0_a...
by
dbannon
[
Today
at 01:46:43 pm]
create system unit from s...
by
Laksen
[
Today
at 01:28:35 pm]
How to get along with the...
by
BrassGear
[
Today
at 01:24:31 pm]
Spiral of Theodorus: Reve...
by
Roland57
[
Today
at 01:24:14 pm]
I just released a commerc...
by
BrassGear
[
Today
at 01:20:51 pm]
InstallAware Using Lazaru...
by
dbannon
[
Today
at 01:05:38 pm]
Improvement of TFPTimerTh...
by
lagprogramming
[
Today
at 12:53:29 pm]
Assign (textfile) not com...
by
Thaddy
[
Today
at 12:18:09 pm]
Question for people who h...
by
marcov
[
Today
at 12:04:56 pm]
[SOLVED] assembler name i...
by
Laksen
[
Today
at 11:40:43 am]
Warning: Source OS Redefi...
by
Laksen
[
Today
at 11:32:46 am]
[SOLVED] how to see what ...
by
Laksen
[
Today
at 11:30:25 am]
Slow copying of small str...
by
alpine
[
Today
at 11:25:10 am]
How to: create DLL file f...
by
KodeZwerg
[
Today
at 10:53:20 am]
Text orientation in TMemo...
by
wp
[
Today
at 10:27:54 am]
Linux Workspaces -- StayO...
by
AmatCoder
[
Today
at 08:21:27 am]
Demoscene The Champs Crac...
by
Lulu
[
Today
at 08:15:12 am]
Azure sql database will n...
by
paweld
[
Today
at 07:24:47 am]
Find child controls by na...
by
Handoko
[
Today
at 04:17:05 am]
location of non visual co...
by
VisualLab
[April 17, 2024, 11:58:55 pm]
For-in loop over constant...
by
Joanna
[April 17, 2024, 11:57:15 pm]
Lazarus editor feature re...
by
440bx
[April 17, 2024, 11:49:08 pm]
How would you define a fi...
by
wp
[April 17, 2024, 11:04:00 pm]
Directx9 with mylogo insi...
by
KodeZwerg
[April 17, 2024, 11:03:54 pm]
Lazarus for Windows on aa...
by
Wallaby
[April 17, 2024, 10:25:46 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Postgresql woes (Read 1408 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: 11449
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: 6685
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: 11449
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: 6685
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