-
Notifications
You must be signed in to change notification settings - Fork 906
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PostgreSQL requirements - Unable to find DB driver for postgres #3937
Comments
Am I correct that the order was the following:
In that case it seems like the build has looked for the postgresql development headers when calling |
You are correct and thanks for picking this one up. I tried to reconfigure and recompile already. This is the full list of psql related packages installed ...
while package postgresql12-devel.x86_64 contains development header files and libraries. Now, executing a |
You may have a library in This should fix it:
|
Nop, but a |
Hurray for portable include paths. @fiatjaf any idea how we can make sure we pick the right inclusion path, independently of the distribution? Sounds a bit like a job for yet another ./configure` check that changes the inclusion path. |
Oops, sorry, I don't understand these library/C things at all! I found this workaround for me by just experimenting and fiddling around. Now I realize that by revealing the path in which my |
Ok, looks like we should just add a |
Found one more nugget: the official docs mention the
I'll try to get that working in the |
Works but may have a catch: In my Centos 7 and 8 instances |
Issue
lightningd fails with
Unable to find DB driver for postgres://user:pw@fqdn:5432/{dbname}
when trying to connect to a remote sql db.What is required to satisfy lightningd in this case? Which psql version is required, recommended, tested? What is required to make it work with psql12?
Environment
Steps to Reproduce
wallet=postgres://user:pw@fqdn:5432/{dbname}
string pointing to a remote database endpoint./usr/local/bin/lightningd
and observe the error thrown:Unable to find DB driver for postgres://user:pw@fqdn:5432/{dbname}
The text was updated successfully, but these errors were encountered: