[Mapserver-users] RH8 Mapserver4(3.7) compilation --with-regex=system error

Bart van Heijningen bart at atsence.nl
Thu Jun 19 05:30:08 EDT 2003


I tried to recompile php as well but did not succeed.
I found out that my problem lies in the fact that there are too many
regex'es in my system. The one included with php and several othors I
physically removed the regex included with php and recompiled again php
--with-regex=system and then recompiled Mapserver again.

The strange thing is that I had to do this several times (!!???) using
exactly the sam compilation strings with Mapserver before it finally took
the right regex. 

I will remember the --with-layout=RedHat flag next time when I am struggling
through the compilation procedures again.

Thanx for the help.

Cheers,

Bart van Heijningen.


-----Oorspronkelijk bericht-----
Van: Benjamin Wragg [mailto:bwragg at tpg.com.au] 
Verzonden: donderdag 19 juni 2003 0:43
Aan: 'Bart van Heijningen'
Onderwerp: RE: [Mapserver-users] RH8 Mapserver4(3.7) compilation
--with-regex=system error

I had this same problem. I thought it was on the PHP end, so I just
recompile PHP with the following configure options and it worked:

./configure --with-regex=system --with-layout=RedHat --enable-track-vars
--enable-force-cgi-redirect

Hope it helps,

Benjamin 


-----Original Message-----
From: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of Bart van
Heijningen
Sent: Wednesday, 18 June 2003 5:05 AM
To: mapserver-users at lists.gis.umn.edu
Cc: bart at atsence.nl
Subject: [Mapserver-users] RH8 Mapserver4(3.7) compilation
--with-regex=system error


Hi all,

I followed the following link for compiling Mapserver37 on Redat8

http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RedHat8AndMapserver37

Altough I clearly copiled php with the --with-regex=system flag set (it
is also listed in phpinfo()!! ) i keeps giving the following error
mesg.:

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-regex=system 
!!!
!!! and then re-configure and re-compile MapServer.                  
!!!



PHP-4.3.1 is compiled with:

/configure --enable-shared --with-regex=system --with-gd=/usr/local
--with-ttf=/usr --enable-gd-native-ttf --with-jpeg-dir=/usr
--with-png-dir=/usr --with-zlib --enable-force-cgi-redirect
--enable-dbase --with-config-file-path

I use for mapserver:

./configure --without-tiff --without-eppl  --with-threads --with-proj 
--with-php=/r
oot/php-4.3.1 --with-gd --with-png --with-w3c-libwww
--with-freetype=/usr/bin --with-pdf -- with-ogr --with-gdal --with-ming
--with-wfs --with-wfs-client


> 
> Everything works fine until I try to test the installation with 
> phpinfo(). I got the following error message:
> 
> Warning: Unexpected character in input: '' (ASCII=15) state=1 in 
> /var/www/cgi-bin/php on line 3325
> Warning: Unexpected character in input: '' (ASCII=2) state=1 in
/var/www/cgi-bin/php on line 3325
> Warning: Unexpected character in input: ' in /var/www/cgi-bin/php on
line 3325
> Warning: Unexpected character in input: ' in /var/www/cgi-bin/php on
line 3325
> Warning: Unexpected character in input: '' (ASCII=15) state=1 in
/var/www/cgi-bin/php on line 3325
> Parse error: parse error in /var/www/cgi-bin/php on line 3325
> 
> Is it a known issue or I mistaken somewhere.
> I am using redhat 9 and apache 2.0.40, mapserver 3.6.6 and PHP 4.3.2
> 
> Christian


_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users








More information about the mapserver-users mailing list