[Mapserver-users] 4.0.1 compile problem with php 4.3.4

Prashanth Ram pram at pramcentral.com
Wed Nov 12 10:58:31 EST 2003


--------------A385157232AE20973B22C0BF
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Aaron:
    I had the same problem w/php 4.3.3 and mapserver. I have 2
suggestions for u.
        1) Remove config.cache, config.status from the php install
directory and recompile using these options:
               PHP:: './configure' '--with-mysql' '--with-dbase'
'--with-gd=/home/mapserver/' '--with-regex=system' '--with-zlib'
'--with-expat' '--with-xml'
               Mapserver: /configure --without-tiff
--with-proj=/home/mapserver/ --with-gdal=/home/mapserver/bin/gdal-config
--with-ogr=/home/mapserver/gdal-1.1.9 --with-jpeg --with-wmsclient
--with-freetype=/home/mapserver/ --with-gd=/home/mapserver/
--with-php=/usr/local/src/php-4.3.4/
--with-curl-config=/home/mapserver/bin/curl-config
--with-ming=/home/mapserver/ming-0.2a

            I found out that the gd library specified with the php
configure HAS to be the SAME as the mapserv gd ..


      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:
            Mapserver: Edit ./configure and comment out the exit 1;  ..
after the change it should look like this:
                         <code>
                                !!! and then re-configure and re-compile
MapServer.                   !!!" 1>&2
                                ; # exit 1;
                            }
                        </code>
                        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.

Good luck..
-Prashanth


"Aaron D. Hunt" wrote:

> When I try to configure mapserver with php I get the error bellow
> about --with-regex=system  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=/home/mapserver/
> --with-gdal=/home/mapserver/bin/gdal-config
> --with-ogr=/home/mapserver/gdal-1.1.9 --with-jpeg --with-wmsclient
> --with-freetype=/home/mapserver/ --with-gd=/home/mapserver/
> --with-php=/usr/local/src/php-4.3.4/
> --with-curl-config=/home/mapserver/bin/curl-config
> --with-ming=/home/mapserver/ming-0.2a I get!!! 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.
> !!!  Aaron D. Hunt
> Technical Manager
> ZedX Inc.

--------------A385157232AE20973B22C0BF
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<body bgcolor="#FFFFFF">
Aaron:
<br>&nbsp;&nbsp;&nbsp; I had the same problem w/php 4.3.3 and mapserver.
I have 2 suggestions for u.
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1) Remove config.cache,
config.status from the php install directory and recompile using these
options:
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
PHP:: './configure' '<font face="Arial"><font size=-1>--with-mysql' '--with-dbase'
'<b>--with-gd=/home/mapserver/'</b> <b>'--with-regex=system'</b> '--with-zlib'
'--with-expat' '--with-xml'</font></font>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Mapserver: <font face="Arial"><font size=-1>/configure --without-tiff --with-proj=/home/mapserver/
--with-gdal=/home/mapserver/bin/gdal-config --with-ogr=/home/mapserver/gdal-1.1.9
--with-jpeg --with-wmsclient --with-freetype=/home/mapserver/ --with-gd=/home/mapserver/
--with-php=/usr/local/src/php-4.3.4/ --with-curl-config=/home/mapserver/bin/curl-config
--with-ming=/home/mapserver/ming-0.2a</font></font>
<br><font face="Arial"><font size=-1>&nbsp;</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
I found out that the gd library specified with the php configure HAS to
be the SAME as the mapserv gd ..</font></font>
<br><font face="Arial"><font size=-1></font></font>&nbsp;<font face="Arial"><font size=-1></font></font>
<p><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2) This
suggestion, I know will bring the wrath of a slew of ppl. on the list...
but here goes.. Do this ONLY TO&nbsp; TEST:</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Mapserver: Edit ./configure and comment out the <i>exit 1;&nbsp; ..&nbsp;</i>
after the change it should look like this:</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;code></font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
!!! and then re-configure and re-compile MapServer.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
!!!" 1>&amp;2</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
; # exit 1;</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
}</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/code></font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
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&nbsp; I could be wrong.</font></font><font face="Arial"><font size=-1></font></font>
<p><font face="Arial"><font size=-1>Good luck..</font></font>
<br><font face="Arial"><font size=-1>-Prashanth</font></font>
<br><font face="Arial"><font size=-1></font></font>&nbsp;<font face="Arial"><font size=-1></font></font>
<p>"Aaron D. Hunt" wrote:
<blockquote TYPE=CITE><style></style>
<font face="Arial"><font size=-1>When
I try to configure mapserver with php I get the error bellow about --with-regex=system&nbsp;
when my php is configured with it. Am I missing something?</font></font>&nbsp;&nbsp;&nbsp;<font face="Arial"><font size=-1>I
have php configured with './configure' '--with-mysql' '--with-dbase' '--with-gd'
'--with-system-regex' '--with-zlib' '--with-expat' '--with-xml'</font></font>&nbsp;<font face="Arial"><font size=-1>mapserver
configure with</font></font><font face="Arial"><font size=-1>./configure
--without-tiff --with-proj=/home/mapserver/ --with-gdal=/home/mapserver/bin/gdal-config
--with-ogr=/home/mapserver/gdal-1.1.9 --with-jpeg --with-wmsclient --with-freetype=/home/mapserver/
--with-gd=/home/mapserver/ --with-php=/usr/local/src/php-4.3.4/ --with-curl-config=/home/mapserver/bin/curl-config
--with-ming=/home/mapserver/ming-0.2a</font></font>&nbsp;<font face="Arial"><font size=-1>I
get</font></font><font face="Arial"><font size=-1>!!! The current version
of PHP MapScript has some problems with&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
!!!</font></font>
<br><font face="Arial"><font size=-1>!!! PHP4's bundled regex.&nbsp; Until
we figure the solution to the&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
!!!</font></font>
<br><font face="Arial"><font size=-1>!!! problem, the workaround is to
compile PHP4 with the system regex&nbsp; !!!</font></font>
<br><font face="Arial"><font size=-1>!!! Please re-configure and re-compile
PHP4 with --with-regex=system&nbsp; !!!</font></font>
<br><font face="Arial"><font size=-1>!!! and then re-configure and re-compile
MapServer.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
!!!</font></font>&nbsp;&nbsp;<font face="Arial"><font size=-1>Aaron D.
Hunt</font></font>
<br><font face="Arial"><font size=-1>Technical Manager</font></font>
<br><font face="Arial"><font size=-1>ZedX Inc.</font></font></blockquote>

</body>
</html>

--------------A385157232AE20973B22C0BF--





More information about the mapserver-users mailing list