Debian Codegraph @

INSTALL

raw
1 #############################################################
2 ## ##
3 ## Copyright (c) 2007-2017 by The University of Queensland ##
4 ## Centre for Geoscience Computing ##
5 ## http://earth.uq.edu.au/centre-geoscience-computing ##
6 ## ##
7 ## Primary Business: Brisbane, Queensland, Australia ##
8 ## Licensed under the Open Software License version 3.0 ##
9 ## http://www.apache.org/licenses/LICENSE-2.0 ##
10 ## ##
11 #############################################################
12
13
14 INSTALLATION
15 The following instructions describe how to install GenGeo on an Ubuntu distribution of Linux.
16
17 1/ Download the GenGeo source code from the Bazaar repository:
18 bzr branch lp:esys-particle/gengeo gengeo
19 cd gengeo/build
20
21 2/ Create a configure script for your distribution:
22 ./autogen.sh
23
24 3/ Create the Makefiles for GenGeo:
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/gengeo/install
32
33 4/ Build GenGeo:
34 make
35
36 5/ Install the GenGeo 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 GenGeo 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/gengeo/install (replace 2.6 with your version of python):
44 export LD_LIBRARY_PATH=/home/myname/gengeo/install/lib:$LD_LIBRARY_PATH
45 export PYTHONPATH=/home/myname/gengeo/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