-
Notifications
You must be signed in to change notification settings - Fork 1
Ubuntu 10.10 32bit
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. Remember to set an heap space that is less than the amount of your physical memory.
echo "export JAVA_HOME=/usr/lib/jvm/java-6-openjdk" >> $HOME/.bashrc cd /to/your/openquake/dir/ edit openquake/java.py, line 52: def jvm(max_mem=4000)
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.
your installation was successful you can now 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 Manual Installation