[Mapserver-users] Configure --with-system-regex

Gerard Farràs gerard at intranet.ctfc.es
Wed Mar 26 10:06:13 EST 2003


This is a multi-part message in MIME format.

------=_NextPart_000_002A_01C2F3B1.9FC42CB0
Content-Type: text/plain;
	charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable

Thanks!

            I think than I didn?t understand what does
 mean to compile PHP as a CGI....

            Your wiki document was very userful.

--------------------------------------------------------------
Gerard Farr=E0s i Ballabriga
=C0rea de Sistemes
Centre Tecnol=F2gic Forestal de Catalunya (http://www.ctfc.es)
C/Pujada del Seminari, s/n
25280 Solsona
Tel. 973-481752/481681
Fax 973-481392
--------------------------------------------------------------


----- Original Message -----=20
From: "Vincent Schut" <schut at sarvision.com>
To: "Gerard Farr=E0s" <gerard at intranet.ctfc.es>; =
<mapserver-users at lists.gis.umn.edu>
Sent: Tuesday, March 25, 2003 10:07 AM
Subject: Re: [Mapserver-users] Configure --with-system-regex


> Gerard,
>=20
> Have you checked what your phpinfo sais about php's regex? You can =
check=20
> whether your php *really* is using the system regex by looking in=20
> your phpinfo output: in the 'Standard' section, it should say:
>=20
> Regex Library                   System library enabled
>=20
> Mind that you should check the phpinfo page using the php version that =

> mapserver will also use (e.g. the cgi version). (Eventually call your =
php=20
> page containing the phpinfo statement info.phpms or whatever suffix =
you have=20
> defined for your cgi version of php, if you defined a separate one).
> If there is something different than 'system library enabled', your =
php was=20
> *not* compiled with the system regex library and you should check the=20
> configure output of php to find the reason why it ignores your =
regex=3Dsystem=20
> option.
>=20
> If it *does* say php is using the system regex, maybe after compiling =
your=20
> php-cgi, you recompiled php as an apache module (or=20
> some other SAPI) using another regex? This, when you do a make =
install,=20
> changes the header files=20
> of php and the php-config, so that mapserver only sees the last =
compiled=20
> version of php. You should either compile the cgi last, or use a =
different=20
> install directory for the cgi version (e.g. /usr/local/phpcgi ). You =
can set=20
> this with some prefix option(s) in the configure options. I am using =
the last=20
> option myself (separate directories) which enables me to do separate=20
> compilations of whatever type of php without having to bother about =
mapserver=20
> using the wrong header files. Make sure though that the php =
./configure=20
> option for mapserver is pointing towards the right php-config =
executable.=20
> Otherwise it will find the one that is first in the path, which might =
be the=20
> one belonging to the module version.
>=20
> Btw have you checked the=20
> 'http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RedHat8AndMapserver37'=20
> wiki document? This contains a lot of pointers towards compiling a =
proper=20
> mapserver environment (including php) on linux.
>=20
> Regards,
> Vincent Schut.
>=20
> On Saturday 22 March 2003 10:00, Gerard Farr=E0s wrote:
> > Hi all,
> >
> > My platform: Distribution : Suse Linux 7.3
> > Kernel: 2.4.14
> > Arch: sparc64
> > Mapserver-version 3.6.4
> > PHP-Version 4.3.0.
> >
> > I'm trying to recompile MapServer with php support, but I get this:
> >
> > 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.
> > !!!
> >
> > I have recompiled php --with-regex=3Dsystem (and =
--with-system-regex),
> > but.. I get the same result...
> >
> > Can anybody help me?
> >
> > Thanks,
> >
> > Gerard Farr=E0s
> >
> >
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users at lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>=20
> --=20
> ______________________________________
> Vincent Schut (schut at sarvision.com)
> Sarvision B.V.
> Wageningen, The Netherlands
> www.sarvision.com
>=20
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
------=_NextPart_000_002A_01C2F3B1.9FC42CB0
Content-Type: text/html;
	charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-15">
<META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Thanks!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; I think than I didn&acute;t understand what =
does</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;mean to compile PHP as a =
CGI....</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; Your wiki document was very userful.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>--------------------------------------------------------------<B=
R>Gerard=20
Farr=E0s i Ballabriga<BR>=C0rea de Sistemes<BR>Centre Tecnol=F2gic =
Forestal de=20
Catalunya (</FONT><A href=3D"http://www.ctfc.es"><FONT face=3DArial=20
size=3D2>http://www.ctfc.es</FONT></A><FONT face=3DArial =
size=3D2>)<BR>C/Pujada del=20
Seminari, s/n<BR>25280 Solsona<BR>Tel. 973-481752/481681<BR>Fax=20
973-481392<BR>-----------------------------------------------------------=
---</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>----- Original Message ----- </FONT>
<DIV><FONT face=3DArial size=3D2>From: "Vincent Schut" &lt;</FONT><A=20
href=3D"mailto:schut at sarvision.com"><FONT face=3DArial=20
size=3D2>schut at sarvision.com</FONT></A><FONT face=3DArial =
size=3D2>&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>To: "Gerard Farr=E0s" &lt;</FONT><A=20
href=3D"mailto:gerard at intranet.ctfc.es"><FONT face=3DArial=20
size=3D2>gerard at intranet.ctfc.es</FONT></A><FONT face=3DArial =
size=3D2>&gt;;=20
&lt;</FONT><A href=3D"mailto:mapserver-users at lists.gis.umn.edu"><FONT =
face=3DArial=20
size=3D2>mapserver-users at lists.gis.umn.edu</FONT></A><FONT face=3DArial=20
size=3D2>&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Sent: Tuesday, March 25, 2003 10:07 =
AM</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Subject: Re: [Mapserver-users] =
Configure=20
--with-system-regex</FONT></DIV></DIV>
<DIV><FONT face=3DArial><BR><FONT size=3D2></FONT></FONT></DIV><FONT =
face=3DArial=20
size=3D2>&gt; Gerard,<BR>&gt; <BR>&gt; Have you checked what your =
phpinfo sais=20
about php's regex? You can check <BR>&gt; whether your php *really* is =
using the=20
system regex by looking in <BR>&gt; your phpinfo output: in the =
'Standard'=20
section, it should say:<BR>&gt; <BR>&gt; Regex=20
Library&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
System library enabled<BR>&gt; <BR>&gt; Mind that you should check the =
phpinfo=20
page using the php version that <BR>&gt; mapserver will also use (e.g. =
the cgi=20
version). (Eventually call your php <BR>&gt; page containing the phpinfo =

statement info.phpms or whatever suffix you have <BR>&gt; defined for =
your cgi=20
version of php, if you defined a separate one).<BR>&gt; If there is =
something=20
different than 'system library enabled', your php was <BR>&gt; *not* =
compiled=20
with the system regex library and you should check the <BR>&gt; =
configure output=20
of php to find the reason why it ignores your regex=3Dsystem <BR>&gt;=20
option.<BR>&gt; <BR>&gt; If it *does* say php is using the system regex, =
maybe=20
after compiling your <BR>&gt; php-cgi, you recompiled php as an apache =
module=20
(or <BR>&gt; some other SAPI) using another regex? This, when you do a =
make=20
install, <BR>&gt; changes the header files <BR>&gt; of php and the =
php-config,=20
so that mapserver only sees the last compiled <BR>&gt; version of php. =
You=20
should either compile the cgi last, or use a different <BR>&gt; install=20
directory for the cgi version (e.g. /usr/local/phpcgi ). You can set =
<BR>&gt;=20
this with some prefix option(s) in the configure options. I am using the =
last=20
<BR>&gt; option myself (separate directories) which enables me to do =
separate=20
<BR>&gt; compilations of whatever type of php without having to bother =
about=20
mapserver <BR>&gt; using the wrong header files. Make sure though that =
the php=20
./configure <BR>&gt; option for mapserver is pointing towards the right=20
php-config executable. <BR>&gt; Otherwise it will find the one that is =
first in=20
the path, which might be the <BR>&gt; one belonging to the module=20
version.<BR>&gt; <BR>&gt; Btw have you checked the <BR>&gt;=20
'http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RedHat8AndMapserver37' =
<BR>&gt;=20
wiki document? This contains a lot of pointers towards compiling a =
proper=20
<BR>&gt; mapserver environment (including php) on linux.<BR>&gt; =
<BR>&gt;=20
Regards,<BR>&gt; Vincent Schut.<BR>&gt; <BR>&gt; On Saturday 22 March =
2003=20
10:00, Gerard Farr=E0s wrote:<BR>&gt; &gt; Hi all,<BR>&gt; &gt;<BR>&gt; =
&gt; My=20
platform: Distribution : Suse Linux 7.3<BR>&gt; &gt; Kernel: =
2.4.14<BR>&gt; &gt;=20
Arch: sparc64<BR>&gt; &gt; Mapserver-version 3.6.4<BR>&gt; &gt; =
PHP-Version=20
4.3.0.<BR>&gt; &gt;<BR>&gt; &gt; I'm trying to recompile MapServer with =
php=20
support, but I get this:<BR>&gt; &gt;<BR>&gt; &gt; checking whether we =
should=20
use PHP's regex... yes<BR>&gt; &gt; configure: error:<BR>&gt; &gt; !!! =
The=20
current version of PHP MapScript has some problems with<BR>&gt; &gt; =
!!!<BR>&gt;=20
&gt; !!! PHP4's bundled regex.&nbsp; Until we figure the solution to =
the<BR>&gt;=20
&gt; !!!<BR>&gt; &gt; !!! problem, the workaround is to compile PHP4 =
with the=20
system regex<BR>&gt; &gt; !!!<BR>&gt; &gt; !!! Please re-configure and=20
re-compile PHP4 with --with-system-regex<BR>&gt; &gt; !!!<BR>&gt; &gt; =
!!! and=20
then re-configure and re-compile MapServer.<BR>&gt; &gt; !!!<BR>&gt;=20
&gt;<BR>&gt; &gt; I have recompiled php --with-regex=3Dsystem (and=20
--with-system-regex),<BR>&gt; &gt; but.. I get the same =
result...<BR>&gt;=20
&gt;<BR>&gt; &gt; Can anybody help me?<BR>&gt; &gt;<BR>&gt; &gt; =
Thanks,<BR>&gt;=20
&gt;<BR>&gt; &gt; Gerard Farr=E0s<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; =
&gt;<BR>&gt;=20
&gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;=20
_______________________________________________<BR>&gt; &gt; =
Mapserver-users=20
mailing list<BR>&gt; &gt; </FONT><A=20
href=3D"mailto:Mapserver-users at lists.gis.umn.edu"><FONT face=3DArial=20
size=3D2>Mapserver-users at lists.gis.umn.edu</FONT></A><BR><FONT =
face=3DArial=20
size=3D2>&gt; &gt; </FONT><A=20
href=3D"http://lists.gis.umn.edu/mailman/listinfo/mapserver-users"><FONT =

face=3DArial=20
size=3D2>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users</FONT>=
</A><BR><FONT=20
face=3DArial size=3D2>&gt; <BR>&gt; -- <BR>&gt;=20
______________________________________<BR>&gt; Vincent Schut (</FONT><A=20
href=3D"mailto:schut at sarvision.com"><FONT face=3DArial=20
size=3D2>schut at sarvision.com</FONT></A><FONT face=3DArial =
size=3D2>)<BR>&gt; Sarvision=20
B.V.<BR>&gt; Wageningen, The Netherlands<BR>&gt; </FONT><A=20
href=3D"http://www.sarvision.com"><FONT face=3DArial=20
size=3D2>www.sarvision.com</FONT></A><BR><FONT face=3DArial =
size=3D2>&gt; <BR>&gt;=20
_______________________________________________<BR>&gt; Mapserver-users =
mailing=20
list<BR>&gt; </FONT><A =
href=3D"mailto:Mapserver-users at lists.gis.umn.edu"><FONT=20
face=3DArial =
size=3D2>Mapserver-users at lists.gis.umn.edu</FONT></A><BR><FONT=20
face=3DArial size=3D2>&gt; </FONT><A=20
href=3D"http://lists.gis.umn.edu/mailman/listinfo/mapserver-users"><FONT =

face=3DArial=20
size=3D2>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users</FONT>=
</A></BODY></HTML>

------=_NextPart_000_002A_01C2F3B1.9FC42CB0--




More information about the mapserver-users mailing list