Changes between Version 3 and Version 4 of DebianLinux
- Timestamp:
- Jan 26, 2009, 12:12:13 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DebianLinux
v3 v4 46 46 This description relates to pre-woody (Debian r2.x) releases. Many of the supporting libraries are now available as packages, and many of the steps described here are likely to be obsolete. 47 47 48 0.1 Install Debian Woody base system 48 === 0.1 Install Debian Woody base system === 49 49 You'll want to read http://www.debian.org/releases/stable/installmanual for instructions on that. 50 0.2 Compile kernel 2.4.18 so we have ext3 filesystems 51 0.3 Install useful packages 50 === 0.2 Compile kernel 2.4.18 so we have ext3 filesystems === 51 === 0.3 Install useful packages === 52 52 53 53 apt-get install sash # A statically link root shell for fixing fatal mistakes … … 62 62 Since writing this, I have left apt pointing to testing (woody) since most of the libraries are closer to what !MapServer wants compared to stable (2.2r6). 63 63 64 0.4 Update filesystems to use ext3 64 === 0.4 Update filesystems to use ext3 === 65 65 66 1.0 Installing support libraries needed for Mapserver 66 === 1.0 Installing support libraries needed for !MapServer === 67 67 68 1.1 Proj4 (v4.4.3-1) 68 === 1.1 Proj4 (v4.4.3-1) === 69 69 My working Mapserver 3.5 box uses a compiled 4.4.3-2, but I notice 4.4.3 is available as a package. 70 70 71 71 apt-get install proj 72 72 73 1.2 GD 73 === 1.2 GD === 74 74 Mapserver requires 1.2 or higher, at this time the Debian package is 1.7.3-0.1 75 75 … … 80 80 http://mapserver.gis.umn.edu/doc/unix-install-howto.html#d45e163 81 81 82 1.3 PHP 82 === 1.3 PHP === 83 83 I like DSOs for regular PHP work on the server, so let's compile a DSO for PHP and a CGI version that will only be used with PHPMapscript pages (.phtml) 84 84 … … 91 91 We need to compile PHP since the Debian pacakge has --with-regex=PHP while the 3.6 configure.in says that --with-system-regex should be used. (and we want a CGI as well anyway) 92 92 93 1.3.1 libPDF 93 === 1.3.1 libPDF === 94 94 I am currently compiling in libPDF into PHP, native Mapserver PDF may be a far neater solution, but this has been convenient and I can use PDF in other apps. PDFlib is not available as a package so we must compile it: 95 95 … … 100 100 make install 101 101 102 1.3.2 PosgreSQL? 102 === 1.3.2 !PosgreSQL === 103 103 104 104 apt-get install libpgsql2 105 105 106 1.3.2 Compiling and installing PHP 106 === 1.3.2 Compiling and installing PHP === 107 107 For PHP 4.1.2 source retrived by apt-source, I used: 108 108 … … 133 133 /etc/init.d/apache restart 134 134 135 1.4 GDAL and OGR 135 === 1.4 GDAL and OGR === 136 136 GDAL wants g++, g++ wants libraries from the testing distribution so on advice from a Debian expert, I will leave apt pointed at testing. 137 137 … … 146 146 Mapserver 3.7 seems to require GDAL 1.1.8 for to get "CSLFetchBoolean?" 147 147 148 2.0 Compile Mapserver 148 === 2.0 Compile !MapServer === 149 149 Remember to remove ./config.cache if you change anything! I re-installed GD three times before I noticed this. 150 150 … … 162 162 These notes were written for v 3.6.0, but I have recompiled using 3.6.3 and 3.7 with only minor differences (the replacement of libwww with libcurl and the addition of PDFlib and Ming). 163 163 164 3.0 Install Mapserver 164 === 3.0 Install !MapServer === 165 165 166 166 cp ./.libs/php_mapscript.so /usr/lib/php/20010901/ … … 172 172 cp mapserv /usr/lib/cgi-bin # Only needed for our older CGI based apps 173 173 174 4.0 Testing 174 === 4.0 Testing === 175 175 176 176 Install MapServer 4.2.2 and PHPMapScript from Debian Binary Packages