This is not a shell script. Most of the steps do not require intervention, but there are some manual configuration steps that you should not ignore. -- SETUP -- cd $HOME mkdir src mkdir local # Ensure that the following environment variables include the local path PATH -> /usr/home/YOURACCOUNTID/local/bin LDFLAGS -> -L/usr/home/YOURACCOUNTNAME/local/lib CPPFLAGS -> -I/usr/home/YOURACCOUNTNAME/local/include LD_LIBRARY_PATH -> /usr/home/YOURACCOUNTNAME/local/lib LD_RUN_PATH -> /usr/home/YOURACCOUNTNAME/local/lib -- LIBPNG -- cd $HOME/src fetch http://internap.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.25.tar.gz tar xzf libpng-1.2.25.tar.gz cd libpng-1.2.25 ./configure --prefix=$HOME/local --disable-shared make make install -- FREETYPE -- cd $HOME/src fetch http://download.savannah.gnu.org/releases/freetype/freetype-2.3.5.tar.bz2 tar jxf freetype-2.3.5.tar.bz2 cd freetype-2.3.5 setenv GNUMAKE gmake ./configure --prefix=$HOME/local --disable-shared gmake gmake install -- LIBJPEG -- cd $HOME/src fetch ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz tar zxf jpegsrc.v6b.tar.gz cd jpeg-6b ./configure --prefix=$HOME/local --disable-shared make make install make install-lib -- LIBICONV -- cd $HOME/src fetch http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.12.tar.gz tar zxf libiconv-1.12.tar.gz cd libiconv-1.12 ./configure --prefix=$HOME/local --disable-shared make make install # This may only be required if you're using csh rehash -- GD 2 -- cd $HOME/src fetch http://www.libgd.org/releases/gd-2.0.35.tar.gz tar xzf gd-2.0.35.tar.gz cd gd-2.0.35 ./configure --prefix=$HOME/local --disable-shared --with-libiconv-prefix=$HOME/local --with-png=$HOME/local --with-freetype=$HOME/local --with-jpeg=$HOME/local make make install -- PROJ.4 -- cd $HOME/src fetch ftp://ftp.remotesensing.org/proj/proj-4.6.0.tar.gz tar zxf proj-4.6.0.tar.gz cd proj-4.6.0 ./configure --prefix=$HOME/local --disable-shared make make install -- GDAL -- cd $HOME/src fetch http://download.osgeo.org/gdal/gdal-1.5.1.tar.gz tar zxf gdal-1.5.1.tar.gz cd gdal-1.5.1 ./configure --prefix=$HOME/local --without-libtool --without-odbc --without-ld-shared --disable-shared --with-static-proj4=$HOME/local --with-png=$HOME/local --with-jpeg=$HOME/local # Modify GDALmake.opt # Change GDAL_FORMATS to "gtiff hfa iso8211 sdts mem vrt wms gif jpeg png raw" # Others may work, but I was running into problems and cut it down to the minimum working set for me. gmake gmake install # -- GEOS -- # # For some reason this didn't work properly with MapServer. It found it OK, but hundred of errors. # cd $HOME/src # fetch http://geos.refractions.net/downloads/geos-3.0.0.tar.bz2 # tar jxf geos-3.0.0.tar.bz2 # cd geos-3.0.0 # ./configure --prefix=$HOME/local --disable-shared # make # make install -- AGG -- cd $HOME/src fetch http://www.antigrain.com/agg-2.4.tar.gz tar zxf agg-2.4.tar.gz cd agg-2.4 cp Makefile.in.Linux Makefile.in.FreeBSD gmake -- PHP -- cd $HOME/src fetch -o php-5.2.5.tar.bz2 http://www.php.net/get/php-5.2.5.tar.bz2/from/www.php.net/mirror tar jxf php-5.2.5.tar.bz2 cd php-5.2.5 ./configure --prefix=$HOME/local make make install strip php-cgi # copy php-cgi to your website's cgi-bin directory, renamed to php5-ms.cgi Make sure that it is chmod 755 # Configure php.ini (in $HOME/local/lib) to set the extension_dir to /usr/home/YOURUSERID/local/lib/php/extensions and # to specify a valid directory for session.save_path -- MAPSERVER -- cd $HOME/src fetch http://download.osgeo.org/mapserver/mapserver-5.0.2.tar.gz tar zxf mapserver-5.0.2.tar.gz cd mapserver-5.0.2 ./configure --prefix=$HOME/local --enable-runpath --with-gdal=$HOME/local/bin/gdal-config --with-ogr --with-proj=$HOME/local --with-php=$HOME/local --with-gd=$HOME/local --with-freetype=$HOME/local --with-agg=$HOME/src/agg-2.4 gmake strip mapserv strip mapscript/php3/php_mapscript.so # Once this is complete, you will want to copy mapserv into your website's cgi-bin directory and # copy php_mapscript.so into $HOME/local/lib/php/extensions # For any directory you want to use MapScript in, you will need to set the following two lines in your .htaccess # to point to the php CGI that you compiled and configured earlier: # # AddHandler ms-php-script .php # Action ms-php-script /cgi-bin/php5-ms.cgi #