[Mapserver-users] Problem Configuring/Compiling PHP/Mapscript on Linux

Daniel Morissette morissette at dmsolutions.ca
Mon May 12 17:45:10 PDT 2003


You have to take out the --with-apxs in your PHP configure command for
the --with-regex=system to work.

See:
http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0302/msg00194.html

Daniel


Steven Monai wrote:
> 
> Hi folks:
> 
> I am having trouble running the MapServer 3.6.5 configure script to
> compile PHP/Mapscript support. My computer is running Slackware Linux
> 9.0., which came with Apache (v 1.3.27) and PHP4 (v 4.3.1) configured
> as a DSO. I have since installed the PHP4 source tree, as the MapServer
> README says is required to build PHP/Mapscript. I re-configured and
> re-built PHP4 from source, and PHP appears to be working okay.
> 
> Anyway, here is my MapServer 'configure' command-line:
> 
> ./configure --with-gd --with-jpeg --with-freetype --with-png --with-zlib
>  --with-tiff --with-proj --with-gdal --with-ogr --with-postgis
>  --with-wmsclient --with-php=../php-4.3.1
> 
> Without the "--with-php" option, MapServer configures and compiles okay,
> but using the command above, I get the following error message (with a
> few lines preceding the message, for additional context):
> 
>   checking for location of config.h or php_config.h...
>   /usr/src/mapserver-3.6.5/../php-4.3.1/main/php_config.h
>   checking whether we have PHP3 or PHP4... -DPHP4
>   checking whether we should use PHP's regex... yes
>   configure: error:
>   !!! The current version of PHP MapScript has some problems with
>   !!! PHP4's bundled regex.  Until we figure the solution to the
>   !!! problem, the workaround is to compile PHP4 with the system regex
>   !!! Please re-configure and re-compile PHP4 with --with-system-regex
>   !!! and then re-configure and re-compile MapServer.
> 
> Here is the "Configure Command" section from phpinfo() when run on my
> web server (Apache 1.3.27), which confirms that I have compiled PHP4
> with --with-system-regex (and with --with-regex=system, for good
> measure):
> 
>   './configure' '--prefix=/usr/local' '--disable-static'
>   '--with-apxs=/usr/sbin/apxs' '--enable-discard-path'
>   '--with-config-file-path=/etc/apache' '--enable-safe-mode'
>   '--with-openssl' '--enable-bcmath' '--with-bz2' '--with-pic'
>   '--enable-calendar' '--enable-ctype' '--with-gdbm' '--with-db2'
>   '--with-db3' '--enable-dbase' '--enable-ftp' '--with-gd'
>   '--enable-gd-native-ttf' '--with-jpeg-dir=/usr' '--with-png'
>   '--with-gmp' '--with-mysql=shared,/usr' '--with-xml=shared,/usr'
>   '--with-mm=/usr' '--enable-trans-sid' '--enable-shmop'
>   '--enable-sockets' '--with-regex=system' '--with-system-regex'
>   '--enable-sysvsem' '--enable-sysvshm' '--enable-yp'
>   '--enable-memory-limit' '--with-tsrm-pthreads' '--enable-shared'
>   '--disable-debug' '--with-zlib=/usr'
> 
> What am I doing wrong? Please help.
> 
> Thanks,
> -Steve Monai
> --
>




More information about the MapServer-users mailing list