[Mapserver-users] Installation Problem

Eric Bridger eric at gomoos.org
Thu Jun 3 06:25:03 PDT 2004


On Thu, 2004-06-03 at 04:33, Andrea Rossi wrote:
> Hello
> I am trying to install Mapserver 4.2.0 on RedHat9.
> I have a server Apache 2 and I use PHP 4.3.6
> 
> I try to configure
> 
> ./configure --without-tiff --without-eppl
> --with-threads --with-proj
> --with-gdal=/usr/local/bin/gdal-config --with-ogr
> --with-php=/usr/local/include/php/main
> --with-gd=/usr/local  --with-freetype=/usr/bin 
> --with-pdf --with-ming --with-wmsclient --with-wfs
> --with-wfsclient
> 
> and everything seems ok, but when I launch the make
> command, I have the problem:
> 
> make[1]: Entering directory
> `/usr/local/src/mapserver-4.2.0/mapscript/php3'
> gcc -fPIC -O2  -Wall -DCOMPILE_DL=1 -DPHP4
> -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_WFS_SVR
> -DUSE_WMS_SVR -DUSE_MING_FLASH     -DUSE_GDAL
> -DUSE_OGR   -DUSE_THREAD -DUSE_PROJ -DUSE_PROJ_API_H 
> -DUSE_PDF  -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP
> -DUSE_GD_FT  -I/usr/local/src/mapserver-4.2.0
> -I/usr/local/include      -I/usr/local/include    
> -I/usr/local/include  -I/usr/local/include/php/main
> -I/usr/local/include/php/main/dl
> -I/usr/local/include/php/main/main
> -I/usr/local/include/php/main/Zend
> -I/usr/local/include/php/main/include
> -I/usr/local/include/php/main/TSRM  -c -o
> php_mapscript_util.o php_mapscript_util.c
> In file included from php_mapscript_util.h:61,
>                  from php_mapscript_util.c:104:
> /usr/local/include/php/main/php.h:34:18: zend.h: No
> such file or directory
> ...

Even though we are running FreeBSD 4.8
this sounds suspiciously like a problem we ran into just yesterday
attempting to compile PHP Mapscript (Mapserver4.2.0).

Unlike the docs indicate we had to use:
-with-php=/usr/local/php/include/php

This is the directory on our php install which contains the following
dirs and files:

TSRM/           Zend/           acconfig.h      ext/           
main/           regex/

As well, the FreeBSD make, which successfully made mapserv, failed to
find the php include files. GNU gmake 3.8 worked.

HTH.
Eric





More information about the MapServer-users mailing list