[Mapserver-users] Red Hat LInux Mapserver/Mapscript compilation
Alexander Shostko
shostko at ureach.com
Tue Aug 12 10:30:15 PDT 2003
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
More information about the MapServer-users
mailing list