[Mapserver-users] 4.0.1 compile problem with php 4.3.4
Aaron D. Hunt
hunt at zedxinc.com
Wed Nov 12 09:03:19 PST 2003
This is a multi-part message in MIME format.
------=_NextPart_000_090F_01C3A914.F6715B50
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
The first thing did it,
thank you
Aaron
----- Original Message -----=20
From: Prashanth Ram=20
To: Aaron D. Hunt=20
Cc: mapserver-users at lists.gis.umn.edu=20
Sent: Wednesday, November 12, 2003 10:58 AM
Subject: Re: [Mapserver-users] 4.0.1 compile problem with php 4.3.4
Aaron:=20
I had the same problem w/php 4.3.3 and mapserver. I have 2 =
suggestions for u.=20
1) Remove config.cache, config.status from the php install =
directory and recompile using these options:=20
PHP:: './configure' '--with-mysql' '--with-dbase' =
'--with-gd=3D/home/mapserver/' '--with-regex=3Dsystem' '--with-zlib' =
'--with-expat' '--with-xml'=20
Mapserver: /configure --without-tiff =
--with-proj=3D/home/mapserver/ =
--with-gdal=3D/home/mapserver/bin/gdal-config =
--with-ogr=3D/home/mapserver/gdal-1.1.9 --with-jpeg --with-wmsclient =
--with-freetype=3D/home/mapserver/ --with-gd=3D/home/mapserver/ =
--with-php=3D/usr/local/src/php-4.3.4/ =
--with-curl-config=3D/home/mapserver/bin/curl-config =
--with-ming=3D/home/mapserver/ming-0.2a=20
=20
I found out that the gd library specified with the php =
configure HAS to be the SAME as the mapserv gd ..=20
=20
2) This suggestion, I know will bring the wrath of a slew of =
ppl. on the list... but here goes.. Do this ONLY TO TEST:=20
Mapserver: Edit ./configure and comment out the exit 1; =
.. after the change it should look like this:=20
<code>=20
!!! and then re-configure and =
re-compile MapServer. !!!" 1>&2=20
; # exit 1;=20
}=20
</code>=20
See if it complies.. and works correctly.. if =
it does.. remove the comment, make clean, and recompile.. it worked for =
me.. I think it has something to do w/caching, but I could be wrong.=20
Good luck..=20
-Prashanth=20
=20
"Aaron D. Hunt" wrote:=20
When I try to configure mapserver with php I get the error bellow =
about --with-regex=3Dsystem when my php is configured with it. Am I =
missing something? I have php configured with './configure' =
'--with-mysql' '--with-dbase' '--with-gd' '--with-system-regex' =
'--with-zlib' '--with-expat' '--with-xml' mapserver configure =
with./configure --without-tiff --with-proj=3D/home/mapserver/ =
--with-gdal=3D/home/mapserver/bin/gdal-config =
--with-ogr=3D/home/mapserver/gdal-1.1.9 --with-jpeg --with-wmsclient =
--with-freetype=3D/home/mapserver/ --with-gd=3D/home/mapserver/ =
--with-php=3D/usr/local/src/php-4.3.4/ =
--with-curl-config=3D/home/mapserver/bin/curl-config =
--with-ming=3D/home/mapserver/ming-0.2a I get!!! The current version of =
PHP MapScript has some problems with !!!=20
!!! PHP4's bundled regex. Until we figure the solution to the =
!!!=20
!!! problem, the workaround is to compile PHP4 with the system regex =
!!!=20
!!! Please re-configure and re-compile PHP4 with =
--with-regex=3Dsystem !!!=20
!!! and then re-configure and re-compile MapServer. =
!!! Aaron D. Hunt=20
Technical Manager=20
ZedX Inc.
------=_NextPart_000_090F_01C3A914.F6715B50
Content-Type: text/html;
charset="iso-8859-1"
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-1">
<META content=3D"MSHTML 6.00.2800.1264" name=3DGENERATOR></HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>The first thing did it,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>thank you</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Aaron</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A title=3Dpram at pramcentral.com =
href=3D"mailto:pram at pramcentral.com">Prashanth=20
Ram</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A title=3Dhunt at zedxinc.com =
href=3D"mailto:hunt at zedxinc.com">Aaron D. Hunt</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>Cc:</B> <A=20
title=3Dmapserver-users at lists.gis.umn.edu=20
=
href=3D"mailto:mapserver-users at lists.gis.umn.edu">mapserver-users at lists.g=
is.umn.edu</A>=20
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Wednesday, November 12, =
2003 10:58=20
AM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: [Mapserver-users] =
4.0.1=20
compile problem with php 4.3.4</DIV>
<DIV><BR></DIV>Aaron: <BR> I had the same problem =
w/php=20
4.3.3 and mapserver. I have 2 suggestions for u.=20
<BR> 1) Remove config.cache, =
config.status from the php install directory and recompile using these =
options:=20
=
<BR> &nb=
sp; =20
PHP:: './configure' '<FONT face=3DArial><FONT size=3D-1>--with-mysql'=20
'--with-dbase' '<B>--with-gd=3D/home/mapserver/'</B>=20
<B>'--with-regex=3Dsystem'</B> '--with-zlib' '--with-expat'=20
'--with-xml'</FONT></FONT>=20
=
<BR> &nb=
sp; =20
Mapserver: <FONT face=3DArial><FONT size=3D-1>/configure =
--without-tiff=20
--with-proj=3D/home/mapserver/ =
--with-gdal=3D/home/mapserver/bin/gdal-config=20
--with-ogr=3D/home/mapserver/gdal-1.1.9 --with-jpeg --with-wmsclient=20
--with-freetype=3D/home/mapserver/ --with-gd=3D/home/mapserver/=20
--with-php=3D/usr/local/src/php-4.3.4/=20
--with-curl-config=3D/home/mapserver/bin/curl-config=20
--with-ming=3D/home/mapserver/ming-0.2a</FONT></FONT> <BR><FONT =
face=3DArial><FONT=20
size=3D-1> </FONT></FONT> <BR><FONT face=3DArial><FONT=20
=
size=3D-1> &nb=
sp; I=20
found out that the gd library specified with the php configure HAS to =
be the=20
SAME as the mapserv gd ..</FONT></FONT> <BR><FONT face=3DArial><FONT=20
size=3D-1></FONT></FONT> <FONT face=3DArial><FONT =
size=3D-1></FONT></FONT>=20
<P><FONT face=3DArial><FONT size=3D-1> =
2) This=20
suggestion, I know will bring the wrath of a slew of ppl. on the =
list... but=20
here goes.. Do this ONLY TO TEST:</FONT></FONT> <BR><FONT=20
face=3DArial><FONT=20
=
size=3D-1> &nb=
sp;=20
Mapserver: Edit ./configure and comment out the <I>exit 1; =
.. </I>=20
after the change it should look like this:</FONT></FONT> <BR><FONT=20
face=3DArial><FONT=20
=
size=3D-1> &nb=
sp; &nbs=
p; =20
<code></FONT></FONT> <BR><FONT face=3DArial><FONT=20
=
size=3D-1> &nb=
sp; &nbs=
p; =20
!!! and then re-configure and re-compile=20
=
MapServer. &nb=
sp; =20
!!!" 1>&2</FONT></FONT> <BR><FONT face=3DArial><FONT=20
=
size=3D-1> &nb=
sp; &nbs=
p; =20
; # exit 1;</FONT></FONT> <BR><FONT face=3DArial><FONT=20
=
size=3D-1> &nb=
sp; &nbs=
p; =20
}</FONT></FONT> <BR><FONT face=3DArial><FONT=20
=
size=3D-1> &nb=
sp; &nbs=
p;=20
</code></FONT></FONT> <BR><FONT face=3DArial><FONT=20
=
size=3D-1> &nb=
sp; &nbs=
p;=20
See if it complies.. and works correctly.. if it does.. remove the =
comment,=20
make clean, and recompile.. it worked for me.. I think it has =
something to do=20
w/caching, but I could be wrong.</FONT></FONT><FONT =
face=3DArial><FONT=20
size=3D-1></FONT></FONT>=20
<P><FONT face=3DArial><FONT size=3D-1>Good luck..</FONT></FONT> =
<BR><FONT=20
face=3DArial><FONT size=3D-1>-Prashanth</FONT></FONT> <BR><FONT =
face=3DArial><FONT=20
size=3D-1></FONT></FONT> <FONT face=3DArial><FONT =
size=3D-1></FONT></FONT>=20
<P>"Aaron D. Hunt" wrote:=20
<BLOCKQUOTE TYPE=3D"CITE">
<STYLE></STYLE>
<FONT face=3DArial><FONT size=3D-1>When I try to configure mapserver =
with php I=20
get the error bellow about --with-regex=3Dsystem when my php =
is=20
configured with it. Am I missing=20
something?</FONT></FONT> <FONT face=3DArial><FONT =
size=3D-1>I=20
have php configured with './configure' '--with-mysql' '--with-dbase' =
'--with-gd' '--with-system-regex' '--with-zlib' '--with-expat'=20
'--with-xml'</FONT></FONT> <FONT face=3DArial><FONT =
size=3D-1>mapserver=20
configure with</FONT></FONT><FONT face=3DArial><FONT =
size=3D-1>./configure=20
--without-tiff --with-proj=3D/home/mapserver/=20
--with-gdal=3D/home/mapserver/bin/gdal-config=20
--with-ogr=3D/home/mapserver/gdal-1.1.9 --with-jpeg --with-wmsclient =
--with-freetype=3D/home/mapserver/ --with-gd=3D/home/mapserver/=20
--with-php=3D/usr/local/src/php-4.3.4/=20
--with-curl-config=3D/home/mapserver/bin/curl-config=20
--with-ming=3D/home/mapserver/ming-0.2a</FONT></FONT> <FONT=20
face=3DArial><FONT size=3D-1>I get</FONT></FONT><FONT =
face=3DArial><FONT=20
size=3D-1>!!! The current version of PHP MapScript has some problems =
with !!!</FONT></FONT> <BR><FONT =
face=3DArial><FONT size=3D-1>!!! PHP4's bundled regex. Until =
we figure the=20
solution to the =
!!!</FONT></FONT>=20
<BR><FONT face=3DArial><FONT size=3D-1>!!! problem, the workaround =
is to compile=20
PHP4 with the system regex !!!</FONT></FONT> <BR><FONT=20
face=3DArial><FONT size=3D-1>!!! Please re-configure and re-compile =
PHP4 with=20
--with-regex=3Dsystem !!!</FONT></FONT> <BR><FONT =
face=3DArial><FONT=20
size=3D-1>!!! and then re-configure and re-compile=20
=
MapServer. &nb=
sp; =20
!!!</FONT></FONT> <FONT face=3DArial><FONT =
size=3D-1>Aaron D.=20
Hunt</FONT></FONT> <BR><FONT face=3DArial><FONT size=3D-1>Technical=20
Manager</FONT></FONT> <BR><FONT face=3DArial><FONT size=3D-1>ZedX=20
Inc.</FONT></FONT></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_090F_01C3A914.F6715B50--
More information about the MapServer-users
mailing list