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

thomas bonfort thomas.bonfort at gmail.com
Mon Oct 17 05:17:39 EDT 2011


--with-gif=$HOME if you have installed it there. As a rule of thumb,
it is not a good idea to only compile the packages and not install
them (i.e. no make install) as there is no reason that the packages
respect the include/ lib/ hierarchy inside their source structure.
(i.e. you should be using  --with-gdal=/home/david/bin/gdal-config,
--with-proj=/home/david, etc... )

--
thomas


On Mon, Oct 17, 2011 at 06:48, David Quinn <daithiquinn at gmail.com> wrote:
> 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
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>


More information about the mapserver-users mailing list