<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>I have this error when compiling postgis 2.0.1</span></div><div><br><span></span></div><div><span><br></span></div><div style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><font size="1"><span>/usr/bin/cpp -traditional-cpp -P -I../../postgis/ -I../../ rtpostgis_legacy.sql.in.c | grep -v '^#' > rtpostgis_legacy.sql.in<br>sed 's,MODULE_PATHNAME,$libdir/rtpostgis-2.0,g' rtpostgis_legacy.sql.in >rtpostgis_legacy.sql<br>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<br>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 <br>make[2]: se sale del directorio `/home/nahum/Documentos/software/postgis-2.0.1/raster/rt_pg'<br>make -C loader<br>make[2]: se ingresa al directorio `/home/nahum/Documentos/software/postgis-2.0.1/raster/loader'<br>/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<br>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<br><span style="color: rgb(192, 0, 0);">/usr/bin/ld: cannot find -lpq</span><br style="color: rgb(192, 0, 0);"><span style="color: rgb(192, 0, 0);">collect2: ld returned 1 exit status</span><br style="color: rgb(192, 0,
0);"><span style="color: rgb(192, 0, 0);">make[2]: *** [raster2pgsql] Error 1</span><br style="color: rgb(192, 0, 0);"><span style="color: rgb(192, 0, 0);">make[2]: se sale del directorio `/home/nahum/Documentos/software/postgis-2.0.1/raster/loader'</span><br style="color: rgb(192, 0, 0);"><span style="color: rgb(192, 0, 0);">make[1]: *** [rtloader] Error 2</span><br style="color: rgb(192, 0, 0);"><span style="color: rgb(192, 0, 0);">make[1]: se sale del directorio `/home/nahum/Documentos/software/postgis-2.0.1/raster'</span><br style="color: rgb(192, 0, 0);"><span style="color: rgb(192, 0, 0);">make: *** [all] Error 1</span></span></font></div><div><br><span></span></div><div><span>But pq is installed along with all other dependencies.</span></div><div style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><font size="1"><span>/usr/local/lib:<br> libgdalconstjni.so.1 ->
libgdalconstjni.so<br> liblwgeom-2.0.1.so -> liblwgeom.so<br> libosrjni.so.1 -> libosrjni.so<br> libNCSEcw.so.0 -> libNCSEcw.so.0.0.0<br> libNCSCnet.so.0 -> libNCSCnet.so.0.0.0<br> libjson.so.0 -> libjson.so.0.0.1<br> libgdaljni.so.1 -> libgdaljni.so<br> libogrjni.so.1 -> libogrjni.so<br> libgdal.so.1 -> libgdal.so.1.16.1<br> libproj.so.0 -> libproj.so.0.7.0<br> libNCSUtil.so.0 -> libNCSUtil.so.0.0.0<br> libgeos-3.3.5.so ->
libgeos.so<br> libNCSEcwC.so.0 -> libNCSEcwC.so.0.0.0<br> libgeos_c.so.1 -> libgeos_c.so.1.7.5<br>/usr/local/pgsql/lib:<br> libpqwalreceiver.so -> libpqwalreceiver.so<br> libecpg_compat.so.3 -> libecpg_compat.so.3.3<br> libpgtypes.so.3 -> libpgtypes.so.3.2<br> <span style="color: rgb(192, 0, 0);"> libpq.so.5 -> libpq.so.5.4</span><br> libecpg.so.6 -> libecpg.so.6.3</span></font></div><div><br><span></span></div><div><span>Here are my configure.</span></div><div><br><span></span></div><div><span> <font style="font-family: Courier New,courier,monaco,monospace,sans-serif;" size="1"> PostGIS is now configured for
x86_64-unknown-linux-gnu<br><br> -------------- Compiler Info ------------- <br> C compiler: gcc -g -O2<br> C++ compiler: g++ -g -O2<br> SQL preprocessor: /usr/bin/cpp -traditional-cpp -P<br><br> -------------- Dependencies -------------- <br> GEOS config: /usr/local/bin/geos-config<br> GEOS version: 3.3.5<br> GDAL config: /usr/local/bin/gdal-config<br> GDAL version: 1.9.1<br> PostgreSQL config: /usr/local/pgsql/bin/pg_config<br> PostgreSQL version: PostgreSQL 9.1.4<br> PROJ4 version:
48<br> Libxml2 config: /usr/bin/xml2-config<br> Libxml2 version: 2.7.6<br> JSON-C support: yes<br> PostGIS debug level: 0<br> Perl: /usr/bin/perl<br><br> --------------- Extensions --------------- <br> PostGIS Raster: enabled<br> PostGIS Topology: enabled<br><br> -------- Documentation Generation -------- <br> xsltproc: /usr/bin/xsltproc<br> xsl style sheets: /usr/share/sgml/docbook/xsl-stylesheets<br> dblatex: <br>
convert: /usr/bin/convert<br> mathml2.dtd: http://www.w3.org/Math/DTD/mathml2/mathml2.dtd</font><br></span></div><div><span>There is no error in the configure, I can't find what causes this error.</span></div><div><br><span></span></div><div><span>Any advice to help find this error?</span></div><div><br><span></span></div><div><span>Thanks.</span></div><div><span>Nahum<br></span></div><div> </div><div>--<br>Nahum Castro<br>Leon, Guanajuato, Mexico<br>http://www.leon-linux.com<br>e-mail: pedro1_72 [en] yahoo [punto] com</div></div></body></html>