[mapserver-users] Help install MapCache

moisessalgado moises.pgser at gmail.com
Fri Nov 29 05:14:33 PST 2013


Hi Thomas,

I'm trying to install the mapcache yet. I've downloaded the zip file from
https://github.com/mapserver/mapcache/archive/master.zip but got an error
when i was installing. Then i try by '$git clone
git://github.com/mapserver/mapcache.git' and got the same error on cmake
step (as showed bellow).

root at satelite:/var/www# git clone git://github.com/mapserver/mapcache.git
Cloning into 'mapcache'...
remote: Counting objects: 4270, done.
remote: Compressing objects: 100% (1762/1762), done.
remote: Total 4270 (delta 2628), reused 4126 (delta 2502)
Receiving objects: 100% (4270/4270), 3.34 MiB | 719 KiB/s, done.
Resolving deltas: 100% (2628/2628), done.
root at satelite:/var/www# ls
agrosat  docs_maps  fmc  mapcache  phpmyadmin  webmap  workshop
root at satelite:/var/www# cd mapcache/
root at satelite:/var/www/mapcache# ls
apache     benchmark.py  cmake           include  lib      Makefile.vc  
mapcache.xml.sample    nginx      packaging  release-notes.sh  util
astyle.sh  cgi           CMakeLists.txt  INSTALL  LICENSE  mapcache.xml 
mod_geocache.doxyfile  nmake.opt  README     static
root at satelite:/var/www/mapcache# mkdir build
root at satelite:/var/www/mapcache# cd build/
root at satelite:/var/www/mapcache/build# ls
root at satelite:/var/www/mapcache/build# cmake ..
-- The C compiler identification is GNU 4.7.3
-- The CXX compiler identification is GNU 4.7.3
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for symlink
-- Looking for symlink - found
-- Found ZLIB: /usr/local/lib/libz.a (found version "1.2.3")
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.2.49")
-- Found JPEG: /usr/local/lib/libjpeg.a
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version "7.29.0")
-- Found APR: /usr/lib/libapr-1.so
-- Found APU: /usr/lib/libaprutil-1.so
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- checking for module 'pixman'
--   package 'pixman' not found
-- checking for module 'pixman-1'
--   found pixman-1, version 0.28.2
-- Found PIXMAN: /usr/lib/x86_64-linux-gnu/libpixman-1.so
-- Found SQLITE: /usr/lib/x86_64-linux-gnu/libsqlite3.so
-- * Configured options for the mapcache library
--  * Mandatory components
--   * png: /usr/lib/x86_64-linux-gnu/libpng.so
--   * jpeg: /usr/local/lib/libjpeg.a
--   * Curl: /usr/lib/x86_64-linux-gnu/libcurl.so
--   * Apr: /usr/lib/libapr-1.so
--  * Optional components
--   * PIXMAN: /usr/lib/x86_64-linux-gnu/libpixman-1.so
--   * SQLITE: /usr/lib/x86_64-linux-gnu/libsqlite3.so
--   * Berkeley DB: disabled
--   * Memcache: disabled
--   * TIFF: disabled
--   * GeoTIFF: disabled
--   * Experimental TIFF write support: disabled
--   * PCRE: disabled
--   * Experimental mapserver support: disabled
-- Found GDAL: /usr/lib/libgdal.so
-- Found GEOS: /usr/lib/libgeos_c.so
-- * Seeder Configuration Options:
--   * GEOS: /usr/lib/libgeos_c.so
--   * OGR: /usr/lib/libgdal.so
-- Found FCGI: /usr/lib/libfcgi.so
-- * CGI Configuration Options:
--   * FastCGI: /usr/lib/libfcgi.so
-- Found APACHE: /usr/include/apache2
-- * Apache Module support status:
--   * Mapcache Version String: mod_mapcache/1.3dev
--   * Module will be installed to : Use of uninitialized value $includedir
in concatenation (.) or string at (eval 9) line 1.
/usr/lib/apache2/modules
-- Configuring done
-- Generating done
-- Build files have been written to: /var/www/mapcache/build
root at satelite:/var/www/mapcache/build# make
Scanning dependencies of target mapcache
[  2%] Building C object CMakeFiles/mapcache.dir/lib/lock.c.o
[  4%] Building C object CMakeFiles/mapcache.dir/lib/util.c.o
[  7%] Building C object CMakeFiles/mapcache.dir/lib/cache_tiff.c.o
[  9%] Building C object CMakeFiles/mapcache.dir/lib/imageio_jpeg.c.o
[ 12%] Building C object CMakeFiles/mapcache.dir/lib/dimension.c.o
[ 14%] Building C object CMakeFiles/mapcache.dir/lib/service_mapguide.c.o
[ 17%] Building C object CMakeFiles/mapcache.dir/lib/service_kml.c.o
[ 19%] Building C object CMakeFiles/mapcache.dir/lib/source_dummy.c.o
[ 21%] Building C object CMakeFiles/mapcache.dir/lib/core.c.o
[ 24%] Building C object CMakeFiles/mapcache.dir/lib/cache_memcache.c.o
[ 26%] Building C object CMakeFiles/mapcache.dir/lib/source.c.o
[ 29%] Building C object CMakeFiles/mapcache.dir/lib/buffer.c.o
[ 31%] Building C object CMakeFiles/mapcache.dir/lib/service_ve.c.o
[ 34%] Building C object CMakeFiles/mapcache.dir/lib/axisorder.c.o
[ 36%] Building C object CMakeFiles/mapcache.dir/lib/cache_sqlite.c.o
[ 39%] Building C object CMakeFiles/mapcache.dir/lib/imageio_png.c.o
In file included from /usr/include/png.h:534:0,
                 from /var/www/mapcache/lib/imageio_png.c:32:
/usr/include/zlib.h:86:5: erro: unknown type name âz_constâ
/usr/include/zlib.h:86:19: erro: expected â:â, â,â, â;â, â}â or
â__attribute__â before â*â token
/usr/include/zlib.h:1332:32: erro: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âZ_ARGâ
/usr/include/zlib.h:1656:5: erro: unknown type name âz_off64_tâ
/usr/include/zlib.h:1731:1: erro: unknown type name âz_crc_tâ
make[2]: ** [CMakeFiles/mapcache.dir/lib/imageio_png.c.o] Erro 1
make[1]: ** [CMakeFiles/mapcache.dir/all] Erro 2
make: ** [all] Erro 2
root at satelite:/var/www/mapcache/build#




--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Help-install-MapCache-tp5091744p5091878.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list