[mapserver-users] mapserver and php

Stephen Woodbridge woodbri at swoodbridge.com
Sun Oct 28 10:51:21 PDT 2012


On 10/28/2012 12:37 PM, Vince Miller wrote:
> Thank you for your advice.
>
> After apparent success of:  sudo apt-get install php5-dev
>
> The command:
>
> ./configure --with postgis --with-geos --with php=/usr/include/php5/main
>
> returns the message
>
> ...
> checking for location of php_config.h... configure: error:
> !!! Could not find php_config.h and php_version.h in /usr/include/php5/main.          !!!
> !!! Has PHP been configured yet?
>
>
> yet these two files are present in the stated directory:
>
> sudo ls /usr/include/php5/main/php_*.h
>
> ...
> /usr/include/php5/main/php_config.h
> ...
> /usr/include/php5/main/php_version.h
>
> Any further advice?

Try:

./configure --with postgis --with-geos --with php=/usr



More information about the mapserver-users mailing list