Skip to content
Lars Butler edited this page Mar 9, 2012 · 9 revisions

Please note: due to our limited resources we only support the current Ubuntu production release (11.04). Please proceed to the Ubuntu 11.04 installation page

Ubuntu 10.10 32bit

There are some dependencies that can be installed through apt, some must be installed through pip and some other must be compiled manually. First of all, we install the apt dependencies. Open a terminal and type:

sudo apt-get install python-setuptools python-nose python-guppy python-jpype \
    python-lxml g++ python-dev fabric python-numpy python-shapely python-scipy \
    python-paramiko python-gdal python-matplotlib checkinstall rabbitmq-server \
    openjdk-6-jdk ant wget python-yaml python-django python-redis redis-server

Then we are going to install the pip dependencies. To get the latest pip installation available we use easy_install:

sudo easy_install pip
sudo pip install python-gflags==1.4 celery sphinx

geohash and redis (server part) must be compiled manually. For geohash, type:

wget http://python-geohash.googlecode.com/files/python-geohash-0.7.1.tar.gz
tar xfvz python-geohash-0.7.1.tar.gz
cd python-geohash-0.7.1
sudo python setup.py install

RabbitMQ, another library needed in the OpenQuake architecture, has already been installed through apt, but needs to be configured. We must add a user and a virtualhost for celery. These are the commands needed:

sudo rabbitmqctl add_user celeryuser celery
sudo rabbitmqctl add_vhost celeryvhost
sudo rabbitmqctl set_permissions -p celeryvhost celeryuser ".*" ".*" ".*"

In order to have the Java side working correctly, we must set some parameters for JPype. Basically, we must point JPype to the current JDK installation, and set up the maximum amount of heap space we can use in OpenQuake.

echo "export JAVA_HOME=/usr/lib/jvm/java-6-openjdk" >> $HOME/.bashrc

Now you need to configure how much memory the java virtual machine should use by setting the OQ_JVM_MAXMEM environment variable. For example

echo "export OQ_JVM_MAXMEM=3072" >> $HOME/.bashrc

will configure the JVM to use 3GB of memory. Common configurations are: 512, 1024 etc.

We also need to build the Java OpenQuake classes for the hazard stuff.

cd /to/your/openquake/dir/
ant build-openquake-jar

Further assistance you can get help through our mailing list or on irc.freenode.net (freenode network) at #openquake.
When your installation is completed successfully please visit the running Openquake page to learn which services you need to start and how to run a smoke test or the tests suite. Enjoy!
Please help us improve the process, if you have any suggestion that could improve this documentation contact us at [email protected]
Back to Installation

Clone this wiki locally