This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: i686-pc-cygwin/bin/ld: cannot find -lpostgres
- From: "Gery ." <gamejihou at hotmail dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Sat, 16 Aug 2014 21:02:50 +0000
- Subject: Re: i686-pc-cygwin/bin/ld: cannot find -lpostgres
- Authentication-results: sourceware.org; auth=none
Thanks a lot Marco for this email and the one I sent before about the shared libraries. I didn't answer before because I was inscribed as digest, so I just dropped that recently and subscribed again.
That *.a file definitely did the trick, many thanks for that. I just explained what I did in the PostGIS mailing list also, perhaps someone else can find the solution there.
Thanks again,
Gery
On 16/08/2014 20:39, Gery . wrote:
Hello,
I'm trying to install postgis 2.2.0dev (http://postgis.net/stuff/postgis-2.2.0dev.tar.gz), but I got an error saying:
/usr/lib/gcc/i686-pc-cygwin/4.8.3/../../../../i686-pc-cygwin/bin/ld: cannot find -lpostgres
collect2: error: ld returned 1 exit status
/usr/lib/postgresql/pgxs/src/makefiles/../../src/Makefile.shlib:377: recipe for target 'postgis-2.2.dll' failed
make[1]: *** [postgis-2.2.dll] Error 1
In my cygwin (latest version, 32-bit), postgres.exe is in /usr/sbin and this path is already in $LD_LIBRARY_PATH in my .bashrc.
How can I solve that?
Thanks for any hints,
Gery
PS: The full error message is here:
probably my fault.
Could you copy
http://matzeri.altervista.org/works/postgres/libpostgres.a
on /usr/lib
and see if this solve the issue ?
Thanks
Marco
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple