Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upWindows: note: ld: cannot find -lpq #135
Comments
This comment has been minimized.
|
Have you tried running |
This comment has been minimized.
Ciantic
commented
Jan 24, 2016
|
Hmm, now it gives a longer error: note: ld: skipping incompatible C:/Copies/.../PgSQL/lib/libpq.dll when searching for -lpq |
This comment has been minimized.
|
That usually means that you've installed an incompatible version of the library (32bit vs 64bit, or for the wrong platform). Can you confirm that you have the correct bit version installed? |
This comment has been minimized.
Ciantic
commented
Jan 24, 2016
|
Yes I also suspected this from the error message. It seems to be incorrect version (32 bit), if I could only find portable 64bit version to try... But I think the cargo clean && cargo build solved the first issue so perhaps you can close this. |
This comment has been minimized.
Ciantic
commented
Jan 24, 2016
|
Note for future reference: I found the 64 bit binary zip, which is portable already: http://www.postgresql.org/download/windows/ (note the small zip archive link at the end) |
Ciantic commentedJan 24, 2016
I tried with this:
The compilation fails with
note: ld: cannot find -lpqI downloaded PostgreSQL (portable) and set LD_LIBRARY_PATH environment variable, but it didn't help. I wonder should I set the library path some other way?
edit Also pg_config is in the PATH and it prints out the right directory.