-
Notifications
You must be signed in to change notification settings - Fork 18
InstallationRequirements
Paul Winkler edited this page Aug 6, 2012
·
5 revisions
This page just lists prerequisites. For actual installation instructions, see http://openblockproject.org/docs/
If you want to use global precompiled packages of python-gdal, lxml, shapely, and PIL:
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-imaging \ python-virtualenv \ python-shapely \ python2.6 \ python2.6-dev \ subversion \ unzip \
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 \ libjpeg62-dev \ libgif-dev \ libpng-dev \ zlib1g-dev \ subversion \ unzip \ wget
If you want to use global precompiled packages of python-gdal, lxml, shapely, and PIL:
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 \ python-shapely \ python-imaging \ 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 \ libproj-dev \ libgif-dev \ libjpeg-dev \ libpng-dev \ zlib1g-dev \ unzip \ wget
If you want to use global precompiled packages of python-gdal, lxml, shapely, and PIL:
sudo apt-get install python2.7 \ python2.7-dev \ python-virtualenv \ python-distribute \ build-essential \ git-core \ subversion \ postgresql-8.4-postgis \ python-gdal \ python-lxml \ python-shapely \ python-psycopg2 \ python-imaging \ libproj0 \ libproj-dev \ unzip \ wget
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 \ libgif-dev \ libjpeg-dev \ libpng-dev \ zlib1g-dev \ unzip \ wget \ libproj-dev # Ubuntu 11.04 weirdly moved some libraries and stopped symlinking them; run these commands. sudo ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib/ sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/ sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/
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/
- set up the postgres user as per the directions at
- run sudo chown -R postgres:postgres /opt/local/var/db/postgresql83
- init the database by running `sudo su postgres -c '/opt/local/lib/
- add /opt/local/lib/postgresql83/bin/ to your $PATH
- don't forget to start up postgres! `sudo su postgres -c 'pg_ctl
- optionally you can setup a log file owned by postgres and use the
-l option of pg_ctl
sudo yum install python-devel \ python-setuptools \ python-lxml \ python-imaging \ gdal-python \ python-shapely \ 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!