Changes between Version 4 and Version 5 of SolarisStaticBuild


Ignore:
Timestamp:
Jan 26, 2009, 12:54:06 PM (15 years ago)
Author:
jmckenna
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SolarisStaticBuild

    v4 v5  
    3333=== Development Software ===
    3434
    35 1. libiconv GNU libiconv is a conversion library. This package is needed in static form for gcc and mapserv
     35==== libiconv ====
     36
     37GNU libiconv is a conversion library. This package is needed in static form for gcc and mapserv
    3638{{{
    3739 $ tar zxvf libiconv-1.9.1.tar.gz
     
    4042 $ make; make install
    4143}}}
    42 2. gcc Yes you need a separate gcc with only static libraries.
     44
     45==== gcc ====
     46
     47Yes you need a separate gcc with only static libraries.
    4348{{{
    4449 $ tar zxvf gcc-3.4.0.tar.gz
     
    6469 $ export LD_LIBRARY_PATH="/usr/local/static/lib:/lib:/usr/lib:$ORACLE_HOME/lib"
    6570}}}
    66 freetype
     71==== freetype ====
    6772{{{
    6873 $ tar zxvf freetype-2.1.4.tar.gz
     
    7277 $ make install
    7378}}}
    74 jpeg
     79==== jpeg ====
    7580
    7681If 'make test' doesn't complain, you're okay.
     
    8489 $ make install-lib
    8590}}}
    86 zlib
     91==== zlib ====
    8792
    8893The test should tell you it went smoothly by printing '*** zlib test OK ***'.
     
    95100 $ make install
    96101}}}
    97 png
     102==== png ====
    98103
    99104For this one you have to copy the appropriate Makefile for your system from the scripts directory. There's a generic one for solaris that works. When you run 'make test', you should see 'PASS (9782 zero samples)' in the output and 'libpng passes test' at the very end if all went smoothly. As you can see we need to use sed to make some changes to three internal variables so the install and make will go where we want.
     
    111116 $ make install-static
    112117}}}
    113 tiff
     118==== tiff ====
    114119
    115120This configure script is interactive, but you can turn that off with the --noninteractive flag. Since the prefix doesn't work for the man page install, I've included a sed command that fixes the problem.
     
    123128 $ rm /usr/local/static/lib/libtiff.so
    124129}}}
    125 gd
     130==== gd ====
    126131
    127132Everything works fine here. gd needs the libiconv shared library to compile.
     
    133138 $ make install
    134139}}}
    135 proj
     140==== proj ====
    136141
    137142The usual with a little file moving. Proj has two parts, the main projection engine (proj-4.4.7.tar.gz) and datum support files (proj-nad27-1.1.tar). The datum files must be untarred into the nad subdirectory of proj, as follows:
     
    145150 $ make install
    146151}}}
    147 pdf
     152==== pdf ====
    148153
    149154Nothing special here.
     
    156161 $ make install
    157162}}}
    158 curl
     163==== curl ====
    159164
    160165This package in particular is used by mapserver 4.x.x instead of libwww which was used in previous mapserver versions.
     
    166171 $ make install
    167172}}}
    168 gdal
     173==== gdal ====
    169174
    170175Almost done with supporting packages...
     
    176181 $ make install
    177182}}}
    178 ORACLE
     183==== ORACLE ====
    179184
    180185For Oracle connections, MapServer needs Oracle client version 8.1.7 or later, earlier versions will not work.
    181186
    182 Installing !MapServer
     187==== Installing !MapServer ====
    183188
    184189The install process below assumes you would like to build MapServer with ORACLE support. Set the proper versions and locations for your installations of ORACLE and gd. Before you build, make sure ORACLE_HOME is correct and that $ORACLE_HOME/lib is in your LD_LIBRARY_PATH. In the examples below, Apache's web documents directory is /opt/html and its cgi-bin is /opt/cgi-bin. Set them to the appropriate directories on your system.
     
    190195                --with-wfs --enable-debug --without-httpd
    191196}}}
    192 Edit the Makefile
     197===== Edit the Makefile =====
    193198
    194199Find the line that begins with: GDAL_LIB= Change the last part of the line to look like: gdal-1.2.0/.libs/libgdal.a -lNCSEcw -lNCSUtil The -lNCSEcw -lNCSUtil is needed if you are including ECW support $ make mapserv The resulting executable should have 755 permissions. If it doesn't, set it that way and then trying running it: $ chmod 755 mapserv $ ./mapserv You should get this message: This script can only be used to decode form results and should be initiated as a CGI process via a httpd server. Next, copy the executable into your cgi-bin directory and make it owned by the user id under which apache runs (normally apache or nobody). $ cp mapserv <webserver-root>/cgi-bin $ chown nobody:nobody <webserver-root>/cgi-bin/mapserv Now try accessing MapServer from a web page by going to this URL on your host: http://myhost/cgi-bin/mapserv This should produce the message: