Changes between Version 7 and Version 8 of SolarisStaticBuild
- Timestamp:
- Jan 26, 2009, 1:00:13 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SolarisStaticBuild
v7 v8 1 = Creating MapServer on Solaris (as a mostly static binary) =1 = Creating !MapServer on Solaris (as a mostly static binary) = 2 2 3 3 Last Modified: 07/21/2004 10:12:21 … … 23 23 == Installing Software == 24 24 25 Most of the packages can be installed by doing the usual 'make; make install'. Most of them have a configure script. MapServer must be installed using the configure script with a bunch of options. Below are detailed instructions on how to compile and install each software package. Depending on your version of tar, you'll need to use it to extract the individual tarballs of the software25 Most of the packages can be installed by doing the usual 'make; make install'. Most of them have a configure script. !MapServer must be installed using the configure script with a bunch of options. Below are detailed instructions on how to compile and install each software package. Depending on your version of tar, you'll need to use it to extract the individual tarballs of the software 26 26 27 27 $ gunzip -c some_package.tar.gz | tar xvf - or, if you have gnu tar (recommended): $ tar zxvf some_package.tar.gz I will assume that you are using this version of tar (get it from http://www.sunfreeware.com/) This will place the tarred distributions for all of the supporting software into the current directory. Directions for building each software package are given below. It is important to install them in the order given, since packages further down the list may depend on those listed above them. … … 183 183 ==== ORACLE ==== 184 184 185 For Oracle connections, MapServer needs Oracle client version 8.1.7 or later, earlier versions will not work.185 For Oracle connections, !MapServer needs Oracle client version 8.1.7 or later, earlier versions will not work. 186 186 187 187 ==== Installing !MapServer ==== 188 188 189 The 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.189 The 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. 190 190 191 191 {{{ … … 197 197 ===== Edit the Makefile ===== 198 198 199 Find 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:199 Find 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: 200 200 201 201 No query information to decode. QUERY_STRING is set, but empty. Next, install the MapScript perl module. MapScript for PHP is also available, but instructions for installing it are not included here. For this part, you will need to have Perl installed on your machine. $ cd mapscript/perl $ perl Makefile.PL $ make $ make install