Changes between Version 3 and Version 4 of DebianLinux


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

--

Legend:

Unmodified
Added
Removed
Modified
  • DebianLinux

    v3 v4  
    4646This 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.
    4747
    48 0.1 Install Debian Woody base system
     48=== 0.1 Install Debian Woody base system ===
    4949You'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 ===
    5252
    5353    apt-get install sash   # A statically link root shell for fixing fatal mistakes
     
    6262Since 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).
    6363
    64 0.4 Update filesystems to use ext3
     64=== 0.4 Update filesystems to use ext3 ===
    6565
    66 1.0 Installing support libraries needed for Mapserver
     66=== 1.0 Installing support libraries needed for !MapServer ===
    6767
    68 1.1 Proj4 (v4.4.3-1)
     68=== 1.1 Proj4 (v4.4.3-1) ===
    6969My working Mapserver 3.5 box uses a compiled 4.4.3-2, but I notice 4.4.3 is available as a package.
    7070
    7171    apt-get install proj
    7272
    73 1.2 GD
     73=== 1.2 GD ===
    7474Mapserver requires 1.2 or higher, at this time the Debian package is 1.7.3-0.1
    7575
     
    8080http://mapserver.gis.umn.edu/doc/unix-install-howto.html#d45e163
    8181
    82 1.3 PHP
     82=== 1.3 PHP ===
    8383I 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)
    8484
     
    9191We 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)
    9292
    93 1.3.1 libPDF
     93=== 1.3.1 libPDF ===
    9494I 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:
    9595
     
    100100    make install
    101101
    102 1.3.2 PosgreSQL?
     102=== 1.3.2 !PosgreSQL ===
    103103
    104104    apt-get install libpgsql2
    105105
    106 1.3.2 Compiling and installing PHP
     106=== 1.3.2 Compiling and installing PHP ===
    107107For PHP 4.1.2 source retrived by apt-source, I used:
    108108
     
    133133    /etc/init.d/apache restart
    134134
    135 1.4 GDAL and OGR
     135=== 1.4 GDAL and OGR ===
    136136GDAL wants g++, g++ wants libraries from the testing distribution so on advice from a Debian expert, I will leave apt pointed at testing.
    137137
     
    146146Mapserver 3.7 seems to require GDAL 1.1.8 for to get "CSLFetchBoolean?"
    147147
    148 2.0 Compile Mapserver
     148=== 2.0 Compile !MapServer ===
    149149Remember to remove ./config.cache if you change anything! I re-installed GD three times before I noticed this.
    150150
     
    162162These 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).
    163163
    164 3.0 Install Mapserver
     164=== 3.0 Install !MapServer ===
    165165
    166166    cp ./.libs/php_mapscript.so /usr/lib/php/20010901/
     
    172172    cp mapserv /usr/lib/cgi-bin   # Only needed for our older CGI based apps
    173173
    174 4.0 Testing
     174=== 4.0 Testing ===
    175175
    176176Install MapServer 4.2.2 and PHPMapScript from Debian Binary Packages