This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: i686-pc-cygwin/bin/ld: cannot find -lpostgres

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,


On 16/08/2014 20:39, Gery . wrote:

I'm trying to install postgis 2.2.0dev (, 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,


PS: The full error message is here:

probably my fault.
Could you copy

on /usr/lib
and see if this solve the issue ?


Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]