System-Specific Prerequisites for OpenBlock
This page just lists prerequisites. For actual installation instructions, see http://openblockproject.org/docs/
Ubuntu 9.10 (Karmic)
apt-get install python2.6 \ python2.6-dev \ build-essential \ git \ subversion \ postgresql-8.3-postgis \ libgdal1-1.5.0 \ libgdal1-dev \ libxml2 \ libxml2-dev \ libxslt1.1 \ libxslt1-dev \ libproj0 \ libproj-dev \ unzip \ wget
Ubuntu 10.04 (Lucid)
If you want to use global precompiled packages of python-gdal and python-lxml:
sudo apt-get install \ build-essential \ git-core \ libproj-dev \ libproj0 \ postgresql-8.4-postgis \ postgresql-server-dev-8.4 \ python-distribute \ python-gdal \ python-lxml \ python-virtualenv \ python2.6 \ python2.6-dev \ subversion \ unzip \ wget || exit 1
Or if you prefer to build them from source, you'll need:
sudo apt-get install \ build-essential \ git-core \ libgdal1-dev \ libggdal \ libproj-dev \ libproj0 \ libxml2 \ libxml2-dev \ libxslt \ libxslt-dev \ postgresql-8.4-postgis \ postgresql-server-dev-8.4 \ python-distribute \ python-virtualenv \ python2.6 \ python2.6-dev \ subversion \ unzip \ wget
Ubuntu 10.10 (Maverick)
If you want to use global precompiled packages of python-gdal and python-lxml:
apt-get install python2.6 \ python2.6-dev \ python-virtualenv \ python-distribute \ build-essential \ git-core \ subversion \ postgresql-8.4-postgis \ python-gdal \ python-lxml \ libproj0 \ libproj-dev \ unzip \ wget \ python-psycopg2
Or if you prefer to build them from source, you'll need:
sudo apt-get install python2.6 \ python2.6-dev \ python-virtualenv \ python-distribute \ build-essential \ git-core \ subversion \ postgresql-8.4-postgis \ libgdal1-1.6.0 \ libgdal1-dev \ libxml2 libxml2-dev \ libxslt1.1 libxslt1-dev \ libproj0 \ unzip \ wget \ libproj-dev
Ubuntu 11.04 (Natty)
If you want to use global precompiled packages of python-gdal and python-lxml:
sudo apt-get install python2.7 \ python2.6-dev \ python-virtualenv \ python-distribute \ build-essential \ git-core \ subversion \ postgresql-8.4-postgis \ python-gdal \ python-lxml \ libproj0 \ libproj-dev \ unzip \ wget \ python-psycopg2
Or if you prefer to build them from source, you'll need:
sudo apt-get install python2.7 \ python2.7-dev \ python-virtualenv \ python-distribute \ build-essential \ git-core \ subversion \ postgresql-8.4-postgis \ libgdal1-1.6.0 \ libgdal1-dev \ libxml2 libxml2-dev \ libxslt1.1 libxslt1-dev \ libproj0 \ unzip \ wget \ libproj-dev
Mac OS X
Using Homebrew
Using MacPorts:
port install git-core postgresql83 postgis gdal libxml2 libxslt
Then you need to set up postgresql:
- create the directory /opt/local/var/db/postgresql83/defaultdb/ (sudo mkdir -p /opt/local/var/db/postgresql83/defaultdb)
- set up the postgres user as per the directions at http://www.postgresql.org/docs/8.3/interactive/postgres-user.html. (NOTE: be sure to set NFSHomeDirectory to /opt/local/var/db/postgresql83/, NOT /usr/local/pgsql/data)
- run sudo chown -R postgres:postgres /opt/local/var/db/postgresql83
- init the database by running `sudo su postgres -c '/opt/local/lib/ postgresql83/bin/initdb -D /opt/local/var/db/postgresql83/defaultdb'`
- add /opt/local/lib/postgresql83/bin/ to your $PATH
- don't forget to start up postgres! `sudo su postgres -c 'pg_ctl start -D /opt/local/var/db/postgresql83/defaultdb/`
- optionally you can setup a log file owned by postgres and use the -l option of pg_ctl
Fedora 15 (Lovelock)
sudo yum install python-devel \ python-setuptools \ python-lxml \ gdal-python \ git \ geos \ proj \ proj-devel \ postgresql \ postgresql-devel \ postgis \ gdal \ gdal-devel \ libxml2-devel \ libxslt \ libxslt-devel
thanks agabel for submitting the fedora package list!