[mapserver-users] Problem compiling MapServer - "error: cannot find gif lib"

David Quinn daithiquinn at gmail.com
Sun Oct 16 21:48:38 PDT 2011


Hello List,

I'm trying to install Mapserver on CentOS5 (specifically on a Webfaction
shared hosting server). I'm using the following options:

./configure --prefix=$HOME \
--enable-debug  \
--with-gd \
--with-freetype --without-tiff \
--with-gdal=/home/david/src/gdal-1.8.1/apps/gdal-config \
--with-ogr=/home/david/src/gdal-1.8.1/apps/gdal-config \
--with-proj=/home/david/src/proj-4.7.0/ \
--without-pdf \
--with-png=/usr/ --with-threads \
--with-postgis=/home/david/src/postgresql-8.4.6/src/bin/pg_config \
--with-wfs --with-wcs --with-wmsclient --with-wfsclient \
--with-php=/usr/include/php5/ --enable-debug \
--with-geos=/home/david/bin/geos-config \
--with-python \
--with-gif=/home/david/src/giflib-4.1.6/lib/gif_lib.h

However I get the following error:

checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
configure: checking where GIF is installed...
configure: error: cannot find gif lib in
/home/urbmet/src/giflib-4.1.6/lib/gif_lib.h

After I got this error the first time, I installed giflib-4.1.6. The results
of running $ find | grep gif_lib.h
./include/gif_lib.h
./src/giflib-4.1.6/lib/gif_lib.h
./src/giflib-4.1.6/doc/gif_lib.html
./src/gdal-1.8.1/frmts/gif/giflib/gif_lib.h

I have tried --with-gif with all of the following arguments, either to the
folder or to gif_lib.h without success. Am I missing any settings or
dependencies?

Thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111016/00003616/attachment.htm>


More information about the MapServer-users mailing list