Changes between Version 3 and Version 4 of UsersWikiPostGIS20Debian60pkg


Ignore:
Timestamp:
09/28/12 13:30:17 (12 years ago)
Author:
danielceregatti
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UsersWikiPostGIS20Debian60pkg

    v3 v4  
    11=== THIS IS A WORK IN PROGRESS!! DO NOT FOLLOW THIS YET ===
    22
    3 === Steps for creating a "proper" Postgis 2.0 package on Debian Squeeze ===
     3=== Steps for creating a "proper" Postgis 2.0 pacakge for Postgreql 9.1 on Debian Squeeze ===
    44
    55I prefer to build in a chroot. Install debootstrap if you don't already have it. Change amd64 to i386 or whatever is necessary to suit your environment.
     
    1111sudo mount --bind /dev chroot/dev
    1212sudo mount --bind /dev/pts chroot/dev/pts
     13sudo cp /etc/mtab chroot/etc/
    1314sudo chroot chroot /bin/bash
    1415}}}
     16Since you are already root inside the chroot there's no need to use sudo going forward.
    1517
    16 Add the backports repo for postgresql 9.1 (Optional). I for one want to use modern software, so I chose to go with Postgresql 9.1 instead of 8.4 which is what squeeze defaults to.
     18Configure locales in the chroot as things will break if this isn't done.
     19{{{
     20apt-get update
     21apt-get install locales
     22echo -e "en_US ISO-8859-1\nen_US.UTF-8 UTF-8" >> /etc/locale.gen
     23locale-gen
     24}}}
     25Add the official Debian backports repo for and pin the packages to get postgresql 9.1 and its immediate dependencies.
    1726{{{
    1827cat >> /etc/apt/sources.list.d/backports.list <<EOF
     
    6574}}}
    6675
    67 Install the dependencies required for building everything. Note that here I install the postgresql 9.1 files. YMMV if you use postgresql 8.4.
     76Install the dependencies required for building everything. And yes, it's a lot of stuff.
     77
     78Disclaimer: Not entirely sure all of these are needed, but it'd take a considerable amount of time to determine only what is need, so...
    6879{{{
    69 sudo apt-get install build-essential postgresql-9.1 debhelper devscripts dh-make-perl autotools-dev flex bison libgeos-dev libproj-dev libssl-dev xsltproc docbook docbook-xsl default-jdk libpg-java fastjar libjts-java imagemagick libcunit1-dev dblatex libxml2-dev libgtk2.0-dev postgresql-server-dev-9.1 apt-file libclass-data-inheritable-perl alien doxygen swig ruby ruby-dev libpopt-dev libjson0-dev checkinstall proj-bin grass-dev libcurl4-dev libdap-dev libgif-dev libhdf4-alt-dev libhdf5-serial-dev libjasper-dev libjpeg-dev libltdl3-dev libmysqlclient-dev libnetcdf-dev libpng-dev libpq-dev libspatialite-dev libsqlite3-dev libxerces-c2-dev unixodbc-dev libgdal1-dev ant
     80apt-get install build-essential postgresql-9.1 debhelper devscripts dh-make-perl autotools-dev flex bison libgeos-dev libproj-dev libssl-dev xsltproc docbook docbook-xsl default-jdk libpg-java fastjar libjts-java imagemagick libcunit1-dev dblatex libxml2-dev libgtk2.0-dev postgresql-server-dev-9.1 apt-file libclass-data-inheritable-perl alien doxygen swig ruby ruby-dev libpopt-dev libjson0-dev checkinstall proj-bin grass-dev libcurl4-dev libdap-dev libgif-dev libhdf4-alt-dev libhdf5-serial-dev libjasper-dev libjpeg-dev libltdl3-dev libmysqlclient-dev libnetcdf-dev libpng-dev libpq-dev libspatialite-dev libsqlite3-dev libxerces-c2-dev unixodbc-dev libgdal1-dev ant
    7081}}}
    7182