[Mapserver-users] Red Hat LInux Mapserver/Mapscript compilation

Vincent Schut schut at sarvision.com
Wed Aug 13 01:17:15 PDT 2003


Alex,

I know especially for php it seems a hell of a job, but it usually is worth 
the effort to check the output of ./configure before installing a program... 
An easy wat to do this is redirect it to a file (or to both screen and file 
using 'tee': './configure | tee configure.out.txt', then you can open the 
file in an editor and do searches, or use grep, etc. Then you usually will 
know if one of your ./configure options did not work the way you wanted it.
You can also check mapservers ./configure output for the place where the php 
header files were found. This should be the place where you just compiled 
php.

Hope it helps...

Cheers,
Vincent.

On Tuesday 12 August 2003 19:30, Alexander Shostko wrote:
> Thanks for review
>
> I tried to compile the mapserver using 4.0 with recommended
> features, in some details:
>
> ming, curl, curl-dev and other packages have been installed,
>
>   After which I reinstalled gdal.1.18 by
>
> ./cble-force-cgi-redirect \
> --enable-discard-path \
> --with-config-file-path=/etc/httpd/ \
> --with-gd=/usr/local \
> --with-jpeg-dir \
> --with-png-dir \
> --with-zlib-dir \
> --with-freetype-dir \
> --without-ttf \
> --with-pdflib \
> --with-mysql \
> --with-regex=system \
> --enable-dbase \
> --enable-dbx \
> --enable-versioning
>
> make
> make ogr-all
> make install
>
> 4. Now trying to install php in the same fashion
>
>
> rm -f config.cashe
> ./configure \
> --enable-force-cgi-redirect \
> --enable-discard-path \
> --with-config-file-path=/etc/httpd/ \
> --with-gd=/usr/local \
> --with-jpeg-dir \
> --with-png-dir \
> --with-zlib-dir \
> --with-freetype-dir \
> --without-ttf \
> --with-pdflib \
> --with-mysql \
> --with-regex=system \
> --enable-dbase \
> --enable-dbx \
> --enable-versioning
>
> make
> cp sapi/cgi/php /var/www/cgi-bin
>
> cp php.ini-dist /etc/httpd/php.ini
>
>
> proj, libpng, libtiff, zlib ...  and other libraries are already
> there.
>
> 6. Installing mapserver
>
>
> rm -r config.cache
> ./configure \
>   --without-tiff \
>   --without-eepl \
>   --without-jpeg \
>   --with-threads \
>   --with-proj \
>   --with-gdal=/usr/local/bin \
>   --with-php=../php-4.3.2 \
>   --with-gd=/usr/local \
>   --with-freetype=/usr/bin \
>   --with-pdf \
>   --with-ogr \
>   --with-gdal \
>   --with-ming \
>   --with-wmsclient \
>   --with-wfs \
>   --with-wfs-client
>
>
> After which ./configure gets the message:
>
>
> !!! 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.
>      !!!
>
> However php is compiled --with-regex=system
>
>
> Plan to reduce the number of features in mapserver and try
> again
>
> Thanks for tips
>
> Regards
> Alex
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users

-- 
______________________________________
Vincent Schut
Sarvision B.V.
Wageningen, The Netherlands
www.sarvision.com



More information about the MapServer-users mailing list