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]

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


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:

--
Gery@gery /opt/postgis/postgis-2.2.0dev
$ make
/usr/bin/perl utils/svn_repo_revision.pl
Can't fetch local revision (neither .svn nor .git found)
Not updating existing rev file at 12889
for s in liblwgeom libpgcommon postgis regress raster topology loader utils extensions; do \
        echo "---- Making all in ${s}"; \
        make -C ${s} all || exit 1; \
done;
---- Making all in liblwgeom
make[1]: Entering directory '/opt/postgis/postgis-2.2.0dev/liblwgeom'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/opt/postgis/postgis-2.2.0dev/liblwgeom'
---- Making all in libpgcommon
make[1]: Entering directory '/opt/postgis/postgis-2.2.0dev/libpgcommon'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/opt/postgis/postgis-2.2.0dev/libpgcommon'
---- Making all in postgis
make[1]: Entering directory '/opt/postgis/postgis-2.2.0dev/postgis'
gcc -ggdb -O2 -pipe -Wimplicit-function-declaration -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard   -shared -o postgis-2.2.dll  -Wl,--out-implib=libpostgis-2.2.a postgis_module.o lwgeom_accum.o lwgeom_spheroid.o lwgeom_ogc.o lwgeom_functions_analytic.o lwgeom_inout.o lwgeom_functions_basic.o lwgeom_btree.o lwgeom_box.o lwgeom_box3d.o lwgeom_geos.o lwgeom_backend_api.o lwgeom_geos_prepared.o lwgeom_geos_clean.o lwgeom_geos_relatematch.o lwgeom_export.o lwgeom_in_gml.o lwgeom_in_kml.o lwgeom_in_geohash.o lwgeom_in_geojson.o lwgeom_in_encoded_polyline.o lwgeom_triggers.o lwgeom_dump.o lwgeom_dumppoints.o lwgeom_functions_lrs.o long_xact.o lwgeom_sqlmm.o lwgeom_rtree.o lwgeom_transform.o gserialized_typmod.o gserialized_gist_2d.o gserialized_gist_nd.o gserialized_estimate.o geography_inout.o geography_btree.o geography_measurement.o geography_measurement_trees.o geometry_inout.o -L/usr/lib -Wl,--allow-multiple-definition -Wl,--enable-auto-import  -L/usr/local/lib -Wl,--as-needed   ../libpgcommon/libpgcommon.a ../liblwgeom/.libs/liblwgeom.a  -L/usr/local/lib  -lgeos_c -lproj  -ljson-c -L/usr/lib -lxml2 -lz -liconv -lm  -L/usr/lib -lpostgres -lpgport -lpgcommon -lintl -lssl -lcrypto -lz -lreadline -lcrypt -lldap
/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
make[1]: Leaving directory '/opt/postgis/postgis-2.2.0dev/postgis'
GNUmakefile:14: recipe for target 'all' failed
make: *** [all] Error 1
-- 		 	   		  
--
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


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