~ubuntu-branches/ubuntu/saucy/python-demgengeo/saucy

« back to all changes in this revision

Viewing changes to INSTALL

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2011-11-18 21:47:18 UTC
  • Revision ID: package-import@ubuntu.com-20111118214718-4ysqm3dhpqwdd7gd
Tags: upstream-0.99~bzr106
ImportĀ upstreamĀ versionĀ 0.99~bzr106

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#############################################################
 
2
##                                                         ##
 
3
## Copyright (c) 2007-2011 by The University of Queensland ##
 
4
## Earth Systems Science Computational Centre (ESSCC)      ##
 
5
## http://www.uq.edu.au/esscc                              ##
 
6
##                                                         ##
 
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          ##
 
10
##                                                         ##
 
11
#############################################################
 
12
 
 
13
 
 
14
INSTALLATION
 
15
The following instructions describe how to install lsmgengeo on an Ubuntu distribution of Linux.
 
16
 
 
17
1/ Download the lsmgengeo source code from the Bazaar repository:
 
18
bzr branch lp:esys-particle/gengeo lsmgengeo
 
19
cd lsmgengeo/build
 
20
 
 
21
2/ Create a configure script for your distribution:
 
22
./autogen.sh
 
23
 
 
24
3/ Create the Makefiles for lsmgengeo:
 
25
./configure
 
26
 
 
27
If you are using gcc-4.3 or later, use the following configure command:
 
28
./configure CCFLAGS="-fpermissive" CXXFLAGS="-fpermissive"
 
29
 
 
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
 
32
 
 
33
4/ Build lsmgengeo:
 
34
make
 
35
 
 
36
5/ Install the lsmgengeo libraries:
 
37
sudo make install
 
38
 
 
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
 
42
 
 
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
 
46
 
 
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.
 
48
 
 
49
 
 
50
REINSTALLATION
 
51
To rebuild and reinstall the source code from a clean distribution:
 
52
sudo make uninstall
 
53
make distclean
 
54
./configure /* Add other arguments as needed from step 3 above. */
 
55
make
 
56
sudo make install
 
57
 
 
58