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
May be useful to somebody
by
Handoko
[
Today
at 07:35:48 am]
How can I draw a rectangl...
by
Handoko
[
Today
at 07:30:55 am]
Draw a line in the Scroll...
by
Handoko
[
Today
at 07:27:54 am]
Offical launch of the 1 B...
by
Handoko
[
Today
at 06:05:11 am]
Debugger crashes with App...
by
trev
[
Today
at 06:00:08 am]
Copyrights Q
by
domasz
[
Today
at 04:56:59 am]
web development using pas...
by
Nate897
[
Today
at 02:04:05 am]
questionable function def...
by
440bx
[
Today
at 01:35:28 am]
Why isn't TTIRadioGroup's...
by
jamie
[
Today
at 12:13:45 am]
Generics - correct syntax
by
jamie
[
Today
at 12:11:50 am]
Same project and two Pcs
by
caiov1n1c1us
[
Today
at 12:04:00 am]
v3.99 code completion que...
by
440bx
[April 22, 2024, 11:08:26 pm]
add new targets to make
by
marcov
[April 22, 2024, 09:32:20 pm]
[SOLVED]RichMemo StringRe...
by
KodeZwerg
[April 22, 2024, 08:44:40 pm]
[SOLVED] LAMW/Linux - Ins...
by
Alcatiz
[April 22, 2024, 08:04:06 pm]
[SOLVED] TimeStampToMSecs...
by
korba812
[April 22, 2024, 06:23:33 pm]
Quirky windows
by
ASerge
[April 22, 2024, 06:23:20 pm]
Access violation when re-...
by
cdbc
[April 22, 2024, 05:39:59 pm]
trunk compiler bug for mi...
by
nickysn
[April 22, 2024, 04:05:11 pm]
FPDebug: Evaluate/Modify ...
by
bpranoto
[April 22, 2024, 03:14:12 pm]
Your best UI design - con...
by
lainz
[April 22, 2024, 02:28:00 pm]
Access violation when ope...
by
Чебурашка
[April 22, 2024, 02:07:58 pm]
Unlocking Files
by
KodeZwerg
[April 22, 2024, 12:39:53 pm]
[SOLVED] what is function...
by
Martin_fr
[April 22, 2024, 12:14:59 pm]
[SOLVED] how to build the...
by
Laksen
[April 22, 2024, 10:45:18 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Postgresql woes (Read 1430 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: 11455
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: 6692
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: 11455
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: 396
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: 6692
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