Mapserver in Suse distro

Camden Daily cdaily at GMAIL.COM
Wed Jan 26 17:27:58 EST 2005


Lucky you, I just wrote a nice howto for myself on installing
mapserver on suse 9.1 (so it's a bit easier next time I rebuild the
server).

My server also has support for postgis, if you want to put the
shapefiles into postgres.  If you don't, just leave out the postgress
and postgis rpms.

The packages I installed over the base install were:

xfree86libs
ftp://rpmfind.net/linux/SuSE-Linux/i386/update/9.1/rpm/i586/XFree86-libs-4.3.99.902-43.35.3.i586.rpm
freetype
ftp://rpmfind.net/linux/SuSE-Linux/i386/9.1/suse/i586/freetype-1.3.1-1150.i586.rpm
freetype2
ftp://rpmfind.net/linux/SuSE-Linux/i386/9.1/suse/i586/freetype2-2.1.7-53.i586.rpm
zlib
ftp://rpmfind.net/linux/SuSE-Linux/i386/update/9.1/rpm/i586/zlib-1.2.1-70.6.i586.rpm
zlib-devel
ftp://rpmfind.net/linux/SuSE-Linux/i386/update/9.1/rpm/i586/zlib-devel-1.2.1-70.6.i586.rpm
readline-devel
ftp://rpmfind.net/linux/SuSE-Linux/i386/9.1/suse/i586/readline-devel-4.3-306.i586.rpm
libpng
ftp://rpmfind.net/linux/SuSE-Linux/i386/update/9.1/rpm/i586/libpng-1.2.5-182.10.i586.rpm
libjpeg
ftp://rpmfind.net/linux/SuSE-Linux/i386/9.1/suse/i586/libjpeg-6.2.0-731.i586.rpm
libtiff
ftp://rpmfind.net/linux/SuSE-Linux/i386/update/9.1/rpm/i586/libtiff-3.6.1-38.14.i586.rpm
libxml2
ftp://rpmfind.net/linux/SuSE-Linux/i386/update/9.1/rpm/i586/libxml2-2.6.7-28.7.i586.rpm
libxml2-devel
ftp://rpmfind.net/linux/SuSE-Linux/i386/9.1/suse/i586/libxml2-devel-2.6.7-28.i586.rpm
gd
ftp://rpmfind.net/linux/SuSE-Linux/i386/update/9.1/rpm/i586/gd-2.0.22-65.6.i586.rpm
gd-devel
ftp://rpmfind.net/linux/SuSE-Linux/i386/update/9.1/rpm/i586/gd-devel-2.0.22-65.6.i586.rpm
curl
ftp://rpmfind.net/linux/SuSE-Linux/i386/9.1/suse/i586/curl-7.11.0-39.i586.rpm
curl-devel
ftp://rpmfind.net/linux/SuSE-Linux/i386/9.1/suse/i586/curl-devel-7.11.0-39.i586.rpm
postgresql-libs
ftp://rpmfind.net/linux/SuSE-Linux/i386/update/9.1/rpm/i586/postgresql-libs-7.4.6-0.2.i586.rpm
postgresql
ftp://rpmfind.net/linux/SuSE-Linux/i386/update/9.1/rpm/i586/postgresql-7.4.6-0.2.i586.rpm
postgresql-devel
ftp://rpmfind.net/linux/SuSE-Linux/i386/update/9.1/rpm/i586/postgresql-devel-7.4.6-0.2.i586.rpm
postgresql-server
ftp://rpmfind.net/linux/SuSE-Linux/i386/update/9.1/rpm/i586/postgresql-server-7.4.6-0.2.i586.rpm
proj
http://postgis.refractions.net/rpms/suse/9.1/proj-4.4.7-1.i586.rpm
proj-devel
http://postgis.refractions.net/rpms/suse/9.1/proj-devel-4.4.7-1.i586.rpm
gdal
http://postgis.refractions.net/rpms/suse/9.1/gdal-1.1.9-1.i586.rpm
gdal-devel
http://postgis.refractions.net/rpms/suse/9.1/gdal-devel-1.1.9-1.i586.rpm
geos
http://postgis.refractions.net/rpms/suse/9.1/geos-1.0-2.i586.rpm
postgis
http://postgis.refractions.net/rpms/suse/9.1/postgis-0.8.1-1.i586.rpm

I then installed Apache 2 from source with:
  ./configure --prefix=/usr/local/apache;make;make install

I installed PHP5 with:
  ./configure --prefix=/usr/local/php
--with-apxs2=/usr/local/apache/bin/apxs --with-regex=system;make;make
install

I installed the latest mapserver (4.4.1) with:
  ./configure --with-wmsclient --with-gd --with-freetype --with-png
--with-proj --with-gdal --with-tiff --with-postgis
--with-php=/usr/local/src/php-x.x.x; make;make install
  (make sure --with-php points to the source for your php)
  (leave off --with-postigs if you don't need it)

Move your mapserv and php_mapscript.so files to where they need to go,
set up your php.ini and httpd.conf, and you should be good to go.

(Some people say that php shouldn't be run with apache2, due to some
threading issues, but I've never run into any problems.)



More information about the mapserver-users mailing list