-
Notifications
You must be signed in to change notification settings - Fork 77
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
When postgres 9.3 was installed by apt, it doesn't work. #13
Comments
This looks similar to #8 which is some sort of linking problem that we weren't able to get to the bottom of, unfortunately. Just to make sure when you run |
I tried some It ran correctly after to 9.4 the postgres. |
The version of the server doesn't matter much as long as it's > 7.3 or so, the last time the protocol changed. What I think happened is there was something not quite right with your local postgres setup, if This project uses |
I investigated the pg_config, there was a difference such as follows.
Therefore, I tried to rewrite the libpq.cr in this way with postgres 9.3.9, it was successful. module PG
@[Link(ldflags: "-lpq -I`pg_config --includedir` -L /usr/lib/x86_64-linux-gnu")]
lib LibPQ My postgres was installed by apt, therefore what is better to take action as good think. |
Did/do you have the |
Yes, I have. |
I'm having this bug too, on a "clean" ubuntu trusty install. I never upgraded from another release and I only ever installed PostgreSQL 9.3 (but am up to date on updates and security). The minimum snippet to reproduce is: require "pg"
PG.connect("postgres://postgres:@localhost/")
BTW: the |
Errata: it passes with |
Is If it is the same, then I don't understand why the If it isn't the same, then I don't understand why your |
No, This seems to be a common linker bug, triggered by linking against |
I checked with my Ubuntu-using colleges, and they have pg_config binaires that give the correct results
Can you try something like
(or wherever the binaries are) to get a proper pg_config? |
Hi, @will asked me to have a look at how $ pg_config --libdir
/usr/lib/x86_64-linux-gnu
$ cat /etc/issue.net
Ubuntu 15.04 |
I use the PGDG packages. |
@fdr I've been able to reproduce this on an aws instance, and it also happens on the image b&p uses for slugc. I added your pubkey to the aws instance, can you help me track this down? |
So, @fdr and I tracked this down more, crystal-lang/crystal#1269 It explains why when the libdir isn't /usr/lib things work |
The driver is now native, so this problem is no longer relevant. |
I want to know how to resolve this issue.
The text was updated successfully, but these errors were encountered: