Changes between Version 4 and Version 5 of SolarisStaticBuild
- Timestamp:
- Jan 26, 2009, 12:54:06 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SolarisStaticBuild
v4 v5 33 33 === Development Software === 34 34 35 1. libiconv GNU libiconv is a conversion library. This package is needed in static form for gcc and mapserv 35 ==== libiconv ==== 36 37 GNU libiconv is a conversion library. This package is needed in static form for gcc and mapserv 36 38 {{{ 37 39 $ tar zxvf libiconv-1.9.1.tar.gz … … 40 42 $ make; make install 41 43 }}} 42 2. gcc Yes you need a separate gcc with only static libraries. 44 45 ==== gcc ==== 46 47 Yes you need a separate gcc with only static libraries. 43 48 {{{ 44 49 $ tar zxvf gcc-3.4.0.tar.gz … … 64 69 $ export LD_LIBRARY_PATH="/usr/local/static/lib:/lib:/usr/lib:$ORACLE_HOME/lib" 65 70 }}} 66 freetype 71 ==== freetype ==== 67 72 {{{ 68 73 $ tar zxvf freetype-2.1.4.tar.gz … … 72 77 $ make install 73 78 }}} 74 jpeg 79 ==== jpeg ==== 75 80 76 81 If 'make test' doesn't complain, you're okay. … … 84 89 $ make install-lib 85 90 }}} 86 zlib91 ==== zlib ==== 87 92 88 93 The test should tell you it went smoothly by printing '*** zlib test OK ***'. … … 95 100 $ make install 96 101 }}} 97 png 102 ==== png ==== 98 103 99 104 For 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. … … 111 116 $ make install-static 112 117 }}} 113 tiff 118 ==== tiff ==== 114 119 115 120 This 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. … … 123 128 $ rm /usr/local/static/lib/libtiff.so 124 129 }}} 125 gd 130 ==== gd ==== 126 131 127 132 Everything works fine here. gd needs the libiconv shared library to compile. … … 133 138 $ make install 134 139 }}} 135 proj 140 ==== proj ==== 136 141 137 142 The 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: … … 145 150 $ make install 146 151 }}} 147 pdf 152 ==== pdf ==== 148 153 149 154 Nothing special here. … … 156 161 $ make install 157 162 }}} 158 curl 163 ==== curl ==== 159 164 160 165 This package in particular is used by mapserver 4.x.x instead of libwww which was used in previous mapserver versions. … … 166 171 $ make install 167 172 }}} 168 gdal 173 ==== gdal ==== 169 174 170 175 Almost done with supporting packages... … … 176 181 $ make install 177 182 }}} 178 ORACLE183 ==== ORACLE ==== 179 184 180 185 For Oracle connections, MapServer needs Oracle client version 8.1.7 or later, earlier versions will not work. 181 186 182 Installing !MapServer 187 ==== Installing !MapServer ==== 183 188 184 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 195 --with-wfs --enable-debug --without-httpd 191 196 }}} 192 Edit the Makefile 197 ===== Edit the Makefile ===== 193 198 194 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: