[postgis-users] Error compiling postgis 2.0.1 in Centos 6.3
Nahum Castro
pedro1_72 at yahoo.com
Wed Jul 18 12:48:48 PDT 2012
I have this error when compiling postgis 2.0.1
/usr/bin/cpp -traditional-cpp -P -I../../postgis/ -I../../ rtpostgis_legacy.sql.in.c | grep -v '^#' > rtpostgis_legacy.sql.in
sed 's,MODULE_PATHNAME,$libdir/rtpostgis-2.0,g' rtpostgis_legacy.sql.in >rtpostgis_legacy.sql
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv -fpic -I/usr/local/include -I/usr/include/libxml2 "-I../../liblwgeom" -I/usr/local/include "-I../../libpgcommon" -I../rt_core -I. -I. -I/usr/local/pgsql/include/server -I/usr/local/pgsql/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -c -o rt_pg.o rt_pg.c
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv -fpic -shared -o rtpostgis-2.0.so rt_pg.o -L/usr/local/pgsql/lib -Wl,--as-needed -Wl,-rpath,'/usr/local/pgsql/lib',--enable-new-dtags ../rt_core/librtcore.a ../../liblwgeom/.libs/liblwgeom.a ../../libpgcommon/libpgcommon.a -L/usr/local/lib -lgdal -L/usr/local/lib -lgeos_c -lproj -ljson -lxml2 -lz -lm
make[2]: se sale del directorio `/home/nahum/Documentos/software/postgis-2.0.1/raster/rt_pg'
make -C loader
make[2]: se ingresa al directorio `/home/nahum/Documentos/software/postgis-2.0.1/raster/loader'
/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 raster2pgsql.o ../rt_core/librtcore.a ../rt_core/librtcore.a ../../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 /usr/local/lib/libgdal.so -L/usr/lib64 /usr/local/lib/libproj.so -lsqlite3 -lodbc -lodbcinst -lexpat /usr/local/lib/libNCSEcw.so /usr/local/lib/libNCSEcwC.so /usr/local/lib/libNCSCnet.so /usr/local/lib/libNCSUtil.so -ljpeg -lpng -lpq -lz -lpthread -lrt -ldl -lcurl /usr/local/lib/libgeos_c.so /usr/local/lib/libgeos.so -lc -lm
/usr/bin/ld: cannot find -lpq
collect2: ld returned 1 exit status
make[2]: *** [raster2pgsql] Error 1
make[2]: se sale del directorio `/home/nahum/Documentos/software/postgis-2.0.1/raster/loader'
make[1]: *** [rtloader] Error 2
make[1]: se sale del directorio `/home/nahum/Documentos/software/postgis-2.0.1/raster'
make: *** [all] Error 1
But pq is installed along with all other dependencies.
/usr/local/lib:
libgdalconstjni.so.1 -> libgdalconstjni.so
liblwgeom-2.0.1.so -> liblwgeom.so
libosrjni.so.1 -> libosrjni.so
libNCSEcw.so.0 -> libNCSEcw.so.0.0.0
libNCSCnet.so.0 -> libNCSCnet.so.0.0.0
libjson.so.0 -> libjson.so.0.0.1
libgdaljni.so.1 -> libgdaljni.so
libogrjni.so.1 -> libogrjni.so
libgdal.so.1 -> libgdal.so.1.16.1
libproj.so.0 -> libproj.so.0.7.0
libNCSUtil.so.0 -> libNCSUtil.so.0.0.0
libgeos-3.3.5.so -> libgeos.so
libNCSEcwC.so.0 -> libNCSEcwC.so.0.0.0
libgeos_c.so.1 -> libgeos_c.so.1.7.5
/usr/local/pgsql/lib:
libpqwalreceiver.so -> libpqwalreceiver.so
libecpg_compat.so.3 -> libecpg_compat.so.3.3
libpgtypes.so.3 -> libpgtypes.so.3.2
libpq.so.5 -> libpq.so.5.4
libecpg.so.6 -> libecpg.so.6.3
Here are my configure.
PostGIS is now configured for x86_64-unknown-linux-gnu
-------------- Compiler Info -------------
C compiler: gcc -g -O2
C++ compiler: g++ -g -O2
SQL preprocessor: /usr/bin/cpp -traditional-cpp -P
-------------- Dependencies --------------
GEOS config: /usr/local/bin/geos-config
GEOS version: 3.3.5
GDAL config: /usr/local/bin/gdal-config
GDAL version: 1.9.1
PostgreSQL config: /usr/local/pgsql/bin/pg_config
PostgreSQL version: PostgreSQL 9.1.4
PROJ4 version: 48
Libxml2 config: /usr/bin/xml2-config
Libxml2 version: 2.7.6
JSON-C support: yes
PostGIS debug level: 0
Perl: /usr/bin/perl
--------------- Extensions ---------------
PostGIS Raster: enabled
PostGIS Topology: 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
There is no error in the configure, I can't find what causes this error.
Any advice to help find this error?
Thanks.
Nahum
--
Nahum Castro
Leon, Guanajuato, Mexico
http://www.leon-linux.com
e-mail: pedro1_72 [en] yahoo [punto] com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20120718/c7c363c0/attachment.html>
More information about the postgis-users
mailing list