[Mapserver-users] Installation problem

Daniel Morissette dmorissette at dmsolutions.ca
Tue May 11 11:43:12 EDT 2004

Andrea Rossi wrote:
> Hello.
> I am trying to install Mapserver-4.0.2 in a PC with
> this settings:
> Redhat 9
> Postgresql 7.3.4
> Postgis
> php 4.3.5
> When i do configure everytng is OK but when I do the
> make command I have this errors with php.
> What could be the problem?
> Thank you.
> cd mapscript/php3; make; cd ../..
> make[1]: Entering directory
> `/usr/local/src/mapserver-4.0.2/mapscript/php3'
> gcc -fPIC -O2  -Wall -DCOMPILE_DL=1 -DPHP4
> -DUSE_JPEG  -I/usr/local/src/mapserver-4.0.2    
> -I/usr/include -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:58,
>                  from php_mapscript_util.c:101:
> /usr/local/include/php/main/php.h:34:18: zend.h: No
> such file or directory

Did you use --with-php=/usr/local/include/php/main/ in the configure 

Try using --with-php=/usr/local, that should work with v4.0.2 and 4.2

If you could please file a bug in the MapServer bugzilla with the exact 
configure command that you used, and information about the location of 
your installed PHP then we could fix the configure script to make it 
more robust and prevent that case from happening.

  Daniel Morissette               dmorissette at dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/

More information about the mapserver-users mailing list