[postgis-users] Trouble compiling PostGIS 2.2.0 with raster support

Havard Tveite havard.tveite at nmbu.no
Thu Oct 22 05:58:59 PDT 2015


Hi,

I am on Debian Wheezy (Debian 3.2.68-1+deb7u1) and get the following
error message from "make" for PostGIS 2.2.0 with raster support
(the default) against PostgreSQL 9.5beta1 (make is successful if I
specify --without-raster):

make[2]: Entering directory `....../postgis-2.2.0/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/bash ../../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  -liconv -lm -o raster2pgsql
libtool:   error: cannot find the library '/usr/lib/libjpeg.la' or unhandled argument '/usr/lib/libjpeg.la'
make[2]: *** [raster2pgsql] Error 1
make[2]: Leaving directory `/home/havatv/src/postgis/postgis-2.2.0/raster/loader'
make[1]: *** [rtloader] Error 2
make[1]: Leaving directory `/home/havatv/src/postgis/postgis-2.2.0/raster'
make: *** [all] Error 1

my libjpeg.la is in /usr/lib/x86_64-linux-gnu/libjpeg.la

postgis-2.2.0/libtool contains:
sys_lib_search_path_spec="/usr/lib/gcc/x86_64-linux-gnu/4.7 /usr/lib/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib "
and
sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/lib/R/lib /usr/local/lib /home/license/arcgis/license10.0/bin /home/license/arcgis/license10.0/vmw/mw/lib-linux_optimized/ /usr/local/lib /opt/v8/lib /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu /lib32 /usr/lib32 "

gcc version 4.7.2 (Debian 4.7.2-5)

I don't think there were any problems with 2.1.3 (against a
PostgreSQL 9.1 that was compiled from sources).  Here is the
corresponding output from make for 2.1.3:

make[2]: Entering directory `/home/havatv/src/postgis/postgis-2.1.3/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/bash ../../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  -liconv -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 /usr/local/lib/libgeos_c.so /usr/local/lib/libiconv.so -lm
make[2]: Leaving directory `/home/havatv/src/postgis/postgis-2.1.3/raster/loader'


Regards,

HÃ¥vard


More information about the postgis-users mailing list