[Mapserver-users] MapServer --with-regex=system error
Vincent Schut
schut at sarvision.com
Tue Jul 1 00:57:53 PDT 2003
Greg,
a couple of things to check:
- somewhere you should have (or make) a phpinfo.php page. Check there if it
really uses the system regex. Not by reading the configure options in the
upper part of this page - they're just copied, not matter if they were good
or bad - but scroll down till you find an item that tells you what regex php
uses.
- Usually, if you compile php without explicitly setting a install dir
(--prefix=...), it installs in /usr/local. Maybe you still have some remnants
of older php installations; php packages that come with linux distributions
usually install in /usr. Mapserver uses a program that gets installed along
with php, php-config, to get information about regex used. If there is both a
php-config in /usr/bin and in /usr/local/bin, the old one in /usr/bin will
probably be found first and get used, and give mapserver old info about the
regex used. Make sure you remove all parts of older php installations before
installing your own compiled php. Or configure it with --prefix=/usr, then it
will overwrite your old version.
Regards,
Vincent Schut.
On Monday 30 June 2003 17:45, Craig T. Booth wrote:
> Hello all,
>
> I've wrestled with my Mapserver install for a couple of days and I think
> I've hit a wall. I have reconfigured and rebuilt PHP with the regex=system
> flag but I continue to receive the MapScript error. Any suggestions would
> be greatly appreciated.
>
> Many Thanks,
> Craig Booth
>
> 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-regex=system
> !!! !!! and then re-configure and re-compile MapServer.
> !!!
>
> My PHP 4.2.2 config flags...
> ./configure --enable-inline-optimization --with-db3 --with-png-dir=/usr/lib
> --with-gd-dir=/usr/local/lib --enable-gd-native-ttf --with-ttf --with-g dbm
> --with-gettext --with-jpeg-dir=/usr/lib --with-openssl --with-xml
> --with-zlib --with-layout=GNU --enable-ftp --enable-magic-quotes
> --enable-saf e-mode --enable-sockets --enable-track-vars
> --with-pgsql=/usr/local/pgsql --enable-dbx --with-regex=system
>
> My Mapserver 3.6 config flags...
> ./configure --with-proj=/usr/local --with-jpeg=/usr/lib
> --with-gdal=/usr/local/bin/gdal-config
> --with-postgis=/usr/local/pgsql/bin/pg config --
> with-php=/usr/local/include/php/main --with-tiff-dir=/usr/local/lib
> --with-gd-dir=/usr/local/lib --with-freetype=/usr/lib --with-png=/usr/lib
--
______________________________________
Vincent Schut
Sarvision B.V.
Wageningen, The Netherlands
www.sarvision.com
More information about the MapServer-users
mailing list