I have an odd error while compiling the last postgis versions My OS is Centos Linux 7 x86_64
This is the error (the same on both versions): make[2]: se ingresa al directorio `/home/nahum/Descargas/postgis-2.3.5/raster/loader' gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -I../rt_core -I../../liblwgeom -I/usr/local/include -I/usr/local/include -c raster2pgsql.c /bin/sh ../../libtool --mode=link gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -I../rt_core -I../../liblwgeom -I/usr/local/include -I/usr/local/include ../rt_core/librtcore.a raster2pgsql.o ../../liblwgeom/liblwgeom.la -L/usr/local/lib -lgdal -L/usr/local/lib -lgeos_c -lc -lm -o raster2pgsql libtool: link: gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -I../rt_core -I../../liblwgeom -I/usr/local/include -I/usr/local/include raster2pgsql.o -o .libs/raster2pgsql ../rt_core/librtcore.a ../../liblwgeom/.libs/liblwgeom.so -L/usr/local/lib -L/usr/lib64 -lSFCGAL /usr/local/lib/libgdal.so /usr/local/lib/libproj.so -ljson-c -lsqlite3 -lodbc -lodbcinst -lexpat -lpq -lpthread -lrt -lpcre -lcurl -lxml2 -lz -ldl /usr/local/lib/libgeos_c.so /usr/local/lib/libgeos.so -lc -lm /usr/bin/ld: cannot find -lpq collect2: error: ld returned 1 exit status make[2]: *** [raster2pgsql] Error 1 make[2]: se sale del directorio `/home/nahum/Descargas/postgis-2.3.5/raster/loader' make[1]: *** [rtloader] Error 2 make[1]: se sale del directorio `/home/nahum/Descargas/postgis-2.3.5/raster' make: *** [all] Error 1 Heres is the configure result: 2.3.5: PostGIS is now configured for x86_64-unknown-linux-gnu -------------- Compiler Info ------------- C compiler: gcc -g -O2 SQL preprocessor: /usr/bin/cpp -traditional-cpp -w -P -------------- Dependencies -------------- GEOS config: /usr/local/bin/geos-config GEOS version: 3.6.2 GDAL config: /usr/local/bin/gdal-config GDAL version: 2.2.1 SFCGAL config: /usr/bin/sfcgal-config SFCGAL version: 1.2.2 PostgreSQL config: /usr/local/pgsql/bin/pg_config PostgreSQL version: PostgreSQL 10.1 PROJ4 version: 49 Libxml2 config: /usr/bin/xml2-config Libxml2 version: 2.9.1 JSON-C support: yes PCRE support: yes PostGIS debug level: 0 Perl: /usr/bin/perl --------------- Extensions --------------- PostGIS Raster: enabled PostGIS Topology: enabled SFCGAL support: enabled Address Standardizer support: enabled -------- Documentation Generation -------- xsltproc: /usr/bin/xsltproc xsl style sheets: /usr/share/sgml/docbook/xsl-stylesheets dblatex: convert: /usr/bin/convert mathml2.dtd: http://www.w3.org/Math/DTD/mathml2/mathml2.dtd And 2.4.2 PostGIS is now configured for x86_64-unknown-linux-gnu -------------- Compiler Info ------------- C compiler: gcc -g -O2 SQL preprocessor: /usr/bin/cpp -traditional-cpp -w -P -------------- Dependencies -------------- GEOS config: /usr/local/bin/geos-config GEOS version: 3.6.2 GDAL config: /usr/local/bin/gdal-config GDAL version: 2.2.1 SFCGAL config: /usr/bin/sfcgal-config SFCGAL version: 1.2.2 PostgreSQL config: /usr/local/pgsql/bin/pg_config PostgreSQL version: PostgreSQL 10.1 PROJ4 version: 49 Libxml2 config: /usr/bin/xml2-config Libxml2 version: 2.9.1 JSON-C support: yes protobuf-c support: no PCRE support: yes Perl: /usr/bin/perl --------------- Extensions --------------- PostGIS Raster: enabled PostGIS Topology: enabled SFCGAL support: enabled Address Standardizer support: enabled -------- Documentation Generation -------- xsltproc: /usr/bin/xsltproc xsl style sheets: /usr/share/sgml/docbook/xsl-stylesheets dblatex: convert: /usr/bin/convert mathml2.dtd: http://www.w3.org/Math/DTD/mathml2/mathml2.dtd configure: WARNING: --------- GEOS VERSION WARNING ------------ configure: WARNING: You are building against GEOS 3.6.2 configure: WARNING: To take advantage of all the features of configure: WARNING: this PostGIS version requires GEOS 3.7.0 or higher which is not out yet. configure: WARNING: To take advantage of most of the features of this PostGIS configure: WARNING: we recommend GEOS 3.6 or higher configure: WARNING: You can download the latest versions from configure: WARNING: http://trac.osgeo.org/geos configure: WARNING: And here is the output from ldconfig. /usr/local/pgsql/lib: libpqwalreceiver.so -> libpqwalreceiver.so libpgrouting-2.4.so -> libpgrouting-2.4.so libecpg_compat.so.3 -> libecpg_compat.so.3.10 libecpg.so.6 -> libecpg.so.6.10 libpgtypes.so.3 -> libpgtypes.so.3.10 libpq.so.5 -> libpq.so.5.10 The last line contains libpq. Everything is compiled from source gdal, geos, proj, postgresql. The only thing is that I upgraded from postgresql 9.6.6 and postgis 2.3.3 Here is my pg_config [nahum@localhost postgis-2.4.2]$ pg_config BINDIR = /usr/local/pgsql/bin DOCDIR = /usr/local/pgsql/share/doc HTMLDIR = /usr/local/pgsql/share/doc INCLUDEDIR = /usr/local/pgsql/include PKGINCLUDEDIR = /usr/local/pgsql/include INCLUDEDIR-SERVER = /usr/local/pgsql/include/server LIBDIR = /usr/local/pgsql/lib PKGLIBDIR = /usr/local/pgsql/lib LOCALEDIR = /usr/local/pgsql/share/locale MANDIR = /usr/local/pgsql/share/man SHAREDIR = /usr/local/pgsql/share SYSCONFDIR = /usr/local/pgsql/etc PGXS = /usr/local/pgsql/lib/pgxs/src/makefiles/pgxs.mk CONFIGURE = '--enable-nls=es' '--with-openssl' '--with-libxml' '--with-libxslt' '--with-selinux' '--with-ldap' '--with-perl' '--with-python' CC = gcc CPPFLAGS = -DFRONTEND -D_GNU_SOURCE -I/usr/include/libxml2 CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 CFLAGS_SL = -fPIC LDFLAGS = -L../../src/common -Wl,--as-needed -Wl,-rpath,'/usr/local/pgsql/lib',--enable-new-dtags LDFLAGS_EX = LDFLAGS_SL = LIBS = -lpgcommon -lpgport -lpthread -lselinux -lxslt -lxml2 -lssl -lcrypto -lz -lreadline -lrt -lcrypt -ldl -lm VERSION = PostgreSQL 10.1 Can you help me on how to find where is my error. I googled and found a similar error on postgresql 8 and postgis 1.5 In https://www.postgresql.org/docs/current/static/libpq-build.html says that "This means you forgot the -L option or did not specify the right directory." but I don't know if it is related. Thanks in advance. Nahum -- *Nahum Castro González* Blvd. Perdigón 214, Brisas del Lago. CP 37207 León, Guanajuato, México Tel (477)1950304 Cel (477)1274694
_______________________________________________ postgis-users mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/postgis-users
