Changes between Version 3 and Version 4 of UsersWikiPostGIS20Debian60pkg
- Timestamp:
- 09/28/12 13:30:17 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UsersWikiPostGIS20Debian60pkg
v3 v4 1 1 === THIS IS A WORK IN PROGRESS!! DO NOT FOLLOW THIS YET === 2 2 3 === Steps for creating a "proper" Postgis 2.0 pac kageon Debian Squeeze ===3 === Steps for creating a "proper" Postgis 2.0 pacakge for Postgreql 9.1 on Debian Squeeze === 4 4 5 5 I 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. … … 11 11 sudo mount --bind /dev chroot/dev 12 12 sudo mount --bind /dev/pts chroot/dev/pts 13 sudo cp /etc/mtab chroot/etc/ 13 14 sudo chroot chroot /bin/bash 14 15 }}} 16 Since you are already root inside the chroot there's no need to use sudo going forward. 15 17 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. 18 Configure locales in the chroot as things will break if this isn't done. 19 {{{ 20 apt-get update 21 apt-get install locales 22 echo -e "en_US ISO-8859-1\nen_US.UTF-8 UTF-8" >> /etc/locale.gen 23 locale-gen 24 }}} 25 Add the official Debian backports repo for and pin the packages to get postgresql 9.1 and its immediate dependencies. 17 26 {{{ 18 27 cat >> /etc/apt/sources.list.d/backports.list <<EOF … … 65 74 }}} 66 75 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. 76 Install the dependencies required for building everything. And yes, it's a lot of stuff. 77 78 Disclaimer: Not entirely sure all of these are needed, but it'd take a considerable amount of time to determine only what is need, so... 68 79 {{{ 69 sudoapt-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 ant80 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 70 81 }}} 71 82