1
#############################################################
3
## Copyright (c) 2007-2011 by The University of Queensland ##
4
## Earth Systems Science Computational Centre (ESSCC) ##
5
## http://www.uq.edu.au/esscc ##
7
## Primary Business: Brisbane, Queensland, Australia ##
8
## Licensed under the Open Software License version 3.0 ##
9
## http://www.opensource.org/licenses/osl-3.0.php ##
11
#############################################################
15
The following instructions describe how to install lsmgengeo on an Ubuntu distribution of Linux.
17
1/ Download the lsmgengeo source code from the Bazaar repository:
18
bzr branch lp:esys-particle/gengeo lsmgengeo
21
2/ Create a configure script for your distribution:
24
3/ Create the Makefiles for lsmgengeo:
27
If you are using gcc-4.3 or later, use the following configure command:
28
./configure CCFLAGS="-fpermissive" CXXFLAGS="-fpermissive"
30
To install in a location other than the default /usr/local, include the switch "--prefix=" followed by the location in which you want to install the libraries; for example:
31
./configure --prefix=/home/username/lsmgengeo/install
36
5/ Install the lsmgengeo libraries:
39
6/ Update your environment variables (replace "2.6" with your version of Python, and replace "dist-packages" with "site-packages" if this is where your version of Python wants to install the lsmgengeo python scripts):
40
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
41
export PYTHONPATH=/usr/local/lib/python2.6/dist-packages/gengeo:$PYTHONPATH
43
If you have installed in another location, e.g., /home/username/lsmgengeo/install (replace 2.6 with your version of python):
44
export LD_LIBRARY_PATH=/home/myname/lsmgengeo/install/lib:$LD_LIBRARY_PATH
45
export PYTHONPATH=/home/myname/lsmgengeo/install/lib/python2.6/site-packages/gengeo:$PYTHONPATH
47
Set these variables permanently by adding the lines to your shell's initialization file in your home directory. For example, if you are using the Bourne-Again Shell (bash), then add the lines to ~/.bashrc.
51
To rebuild and reinstall the source code from a clean distribution:
54
./configure /* Add other arguments as needed from step 3 above. */