I can safely say that I have successfully compiled MapServer 5.x on
both. We are currently running a production MapServer on Solaris 10 x86.
I'm attaching my build guide for Solaris.

- Tim

----
Timothy J Nolte - [EMAIL PROTECTED]
Network Planning Engineer

iPCS Wireless, Inc.
4717 Broadmoor Ave, Suite G
Kentwood, MI 49512

Office: 616-656-5163
PCS:    616-706-2438
Fax:    616-554-6484
Web: www.ipcswirelessinc.com

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Faldor
Sent: Thursday, June 05, 2008 6:00 AM
To: [email protected]
Subject: [MAPSERVER-USERS] Mapserver on Solaris 2.10


Hi all,

I have to ensure that Mapserver can be built and run on Solaris 2.10 and
2.8
Do you know of any issues concerning those versions ?

Regards,

Faldor
-- 
View this message in context:
http://www.nabble.com/Mapserver-on-Solaris-2.10-tp17666380p17666380.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Solaris MapServer Build

        Install libtool (v1.5.24)
                pkgadd -d libtool-1.5.24-sol10-x86-local
                ln -s /usr/bin/echo /usr/local/bin/echo

        Install binutils (v2.17)
                pkgadd -d binutils-2.17-sol10-x86-local

                        The following files are already installed on the system 
and are being
                        used by another package:
                          /usr/local/info/standards.info
                          /usr/local/lib/libiberty.a

                        Do you want to install these conflicting files 
[y,n,?,q] n

                        Do you want to continue with the installation of 
<SMCbinut> [y,n,?] y

        Install automake (v1.10)
                pkgadd -d automake-1.10-sol10-x86-local

        Install GNUmake (v3.81)
                pkgadd -d make-3.81-sol10-x86-local

        Install expat
                pkgadd -d 

        Install PNG
                pkgadd -d 

        Install fontconfig
                pkgadd -d 

        Install FreeType
                pkgadd -d 

        Install GD
                pkgadd -d 

        Install XML2
                pkgadd -d 

        Install LibTIFF (v3.8.2)
                pkgadd -d tiff-3.8.2-sol10-x86-local

        Install libXpm (v3.4k)
                pkgadd -d xpm-3.4k-sol10-intel-local

        Install CURL
                pkgadd -d curl-7.17.0-sol10-x86-local

        Install FastCGI library(2.4.1) & module(2.4.2)
                ./configure
                make
                make install

        Rebuild Apache (2.2.3) & Install FastCGI module(2.4.2)
                1. Copy or move the mod_fastcgi distribution directory to
                   <apache_src_dir>/modules/fastcgi.

                2. Configure Apache
                        ./configure --prefix=/usr/local/apache 
--with-mpm=prefork --enable-so \
                        --enable-ssl --with-ssl=/usr/local/ssl 
--enable-auth-anon --enable-auth-dbm \
                        --enable-auth-digest --enable-file-cache 
--enable-charset-lite --enable-cache \
                        --enable-disk-cache --enable-mem-cache --enable-deflate 
--enable-mime \
                        --enable-mime-magic --enable-cern-meta --enable-expires 
--enable-headers \
                        --enable-usertrack --enable-unique-id --enable-version 
--enable-info \
                        --enable-vhost-alias --enable-speling --enable-rewrite 
--enable-env \
                        --enable-log-config --enable-cgi --enable-alias

                3. Rebuild and reinstall Apache.
                        make
                        make install

                4. Install FastCGI module
                        cp Makefile.AP2 Makefile
                        make top_dir=/usr/local/apache
                        make install
                        vi /usr/local/apache/conf/httpd.conf
                                Add: LoadModule fastcgi_module 
modules/mod_fastcgi.so
                                Add: AddHandler fastcgi-script fcgi
                                Add:
                                        <IfModule mod_fastcgi.c>
                                            FastCgiConfig -appConnTimeout 60 
-idle-timeout 60 -init-start-delay 1  -minProcesses 2 -maxClassProcesses 20 
-startDelay 5
                                        </IfModule>
                                Add to cgi-bin Location:
                                        SetHandler fastcgi-script

                5. Stop and start the server.
                        apachectl stop
                        apachectl start

        Compile PHP (v5.2.3)
                ./configure --prefix=/usr/local/php --with-zlib --with-gd 
--with-freetype-dir=/usr/local \
                 --enable-gd-native-ttf --with-jpeg-dir=/usr/local/lib 
--with-png-dir=/usr/local/lib --with-oci8 --enable-ftp --with-curl \
                 --enable-dbase --enable-soap --enable-force-cgi-redirect 
--enable-discard-path \
                 --with-apxs2=/usr/local/apache/bin/apxs
                make
                make install
                install -u root -g root -m 755 -f /export/home/www/cgi-bin 
sapi/cgi/php-cgi
                ./libtool --finish /tmp/php-5.2.3/libs
                cp php.ini-dist /usr/local/php/lib/php.ini

                vi /usr/local/apache/conf/httpd.conf
                        Add:
                                AddType  application/x-httpd-php .php3
                                AddType  application/x-httpd-php .phtml
                                AddType  application/x-httpd-php .php

                                ### Action application/x-httpd-php 
/cgi-bin/php-cgi

                Stop and start the server.
                        apachectl stop
                        apachectl start

        Install Proj.4 (v4.5.0)
                ./configure
                make
                make install

                install updated projections
                        cd /usr/local/share/proj
                        mv epsg epsg.bak
                        unzip proj4-epsg-with-42xxx-and-esri.zip

                add to /etc/profile
                        export ..... PROJ_LIB
                        PROJ_LIB=/usr/local/share/proj

        Install LibGeoTIFF (v1.2.4)
                ./configure
                make
                make install

        Install GEOS (v2.2.3)
                ./configure prefix=/usr/local
                make
                make install

        Install OGDI (v3.1.5)
                TOPDIR=/tmp/ogdi-3.1.5; export TOPDIR
                TARGET=solaris; export TARGET
                ./configure --with-proj=/usr/local --with-zlib=/usr/local 
--with-expat=/usr/local
                make
                make install

        Install GDAL (v1.4.2)
                ./configure --with-geotiff=internal --with-gif=internal 
--with-jpeg=internal --without-ogdi --with-oci=yes
                make
                make install

        Install shapelib (v1.2.10)
                vi Makefile
                        Add CC = gcc, before CFLAGS
                make
                vi makeshape.sh
                        Add "./" before each command execution
                make test
                Two test should complete successfully
                Copy binaries to /usr/local/bin
                        cp dbfadd /usr/local/bin
                        cp dbfcreate /usr/local/bin
                        cp dbfdump /usr/local/bin
                        cp shpadd /usr/local/bin
                        cp shpcreate /usr/local/bin
                        cp shpdump /usr/local/bin
                        cp shprewind /usr/local/bin
                        cp shptest /usr/local/bin
                cd contrib
                vi Makefile
                        Add CC = gcc, before CFLAGS
                make
                vi tests/shpproj.sh
                        change "dbfcreate test -s 30 fd" to "dbfcreate test -s 
fd 30"
                make check (success...)
                cp dbfcat /usr/local/bin
                cp dbfinfo /usr/local/bin
                cp shpcat /usr/local/bin
                cp shpcentrd /usr/local/bin
                cp shpdata /usr/local/bin
                cp shpdxf /usr/local/bin
                cp shpfix /usr/local/bin
                cp shpinfo /usr/local/bin
                cp shpproj /usr/local/bin
                cp shpwkb /usr/local/bin

        Install agg
                untar/ungzip agg to /usr/local

                vi Makefile.in.SunOS
                        Change:
                                CXX = CC
                        To:
                                CXX = g++

                        Change:
                                C = cc
                        To:
                                C = gcc

                        Change:
                                LIB = CC -xar -o
                        To:
                                LIB = ar cr

                cd /usr/local/agg
                make

        Install MapServer (v5.0)
                patch -i fastlinesandpolygons.patch mapagg.cpp
                ###
                vi configure
                        Remove or Comment Out:
                                  { { echo "$as_me:$LINENO: error:
                                !!! The current version of PHP MapScript 
requires PHP4 configured as  !!!
                                !!! a CGI and cannot be used with PHP4 
configured as an Apache module,!!!
                                !!! so you cannot use the --with-apxs option.   
                      !!!
                                !!! See: 
http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI !!!" >&5
                                echo "$as_me: error:
                                !!! The current version of PHP MapScript 
requires PHP4 configured as  !!!
                                !!! a CGI and cannot be used with PHP4 
configured as an Apache module,!!!
                                !!! so you cannot use the --with-apxs option.   
                      !!!
                                !!! See: 
http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI !!!" >&2;}
                                   { (exit 1); exit 1; }; }
                ###
                ./configure --enable-ignore-missing-data --with-geos 
--with-proj --with-gdal --with-ogr \
                 --with-curl-config=/usr/local/bin/curl-config 
--with-xml2-config=/usr/local/bin/xml2-config \
                 --with-threads --without-tiff --without-pdf --with-freetype 
--with-oraclespatial=yes \
                 --with-wfs --with-wcs --with-wmsclient --with-wfsclient 
--with-php=/usr/local/php \
                 --with-png=/usr/local/lib --with-jpeg=/usr/local/lib 
--with-apxs=/usr/local/apache/bin/apxs \
                 --with-agg=/usr/local/agg
                
                make
                cd mapscript/perl ; perl Makefile.PL && make
                install -o -u root -g root -m 755 -f /export/home/www/cgi-bin 
mapserv
                install -o -u root -g root -m 655 -f /usr/local/php/lib/php 
mapscript/php3/php_mapscript.so

                for i in legend scalebar tile4ms sortshp shptree shptreevis 
shp2pdf shp2img msencrypt shp2mysql.pl
                do
                   install -o -u root -g root -m 755 -f /usr/local/bin $i
                done

                cd mapscript/perl ; make install

                vi /usr/local/php/lib/php.ini
                        ; Directory in which the loadable extensions (modules) 
reside.
                        extension_dir = "/usr/local/php/lib/php/"
                        
                        ;;;;;;;;;;;;;;;;;;;;;;
                        ; Dynamic Extensions ;
                        ;;;;;;;;;;;;;;;;;;;;;;
                        extension=php_mapscript.so

                vi /usr/local/apache/conf/httpd.conf
                        <IfModule alias_module>
                                Alias /ms_tmp/ 
"/export/home/www/ipcs/.cache/ms_tmp/"

                        ----

                        <Location "/cgi-bin/">
                                SetEnv ORACLE_HOME /u01/app/oracle/product/10.2
                                SetEnv ORACLE_BASE /u01/app/oracle
                                SetEnv TNS_ADMIN 
/u01/app/oracle/product/10.2/network/admin
                                SetEnv ORACLE_SID nps
                                SetEnv LD_LIBRARY_PATH 
                                        /u01/app/oracle/product/10.2/lib:
                                        
/lib:/usr/lib:/usr/openwin/lib:/usr/td/lib:
                                        /usr/ucblib:/usr/local/lib
                        </Location>

                Stop and start the server.
                        apachectl stop
                        apachectl start
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to