Changes between Version 39 and Version 40 of InstallUbuntuSvn


Ignore:
Timestamp:
Mar 11, 2015, 4:30:25 PM (9 years ago)
Author:
steve
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallUbuntuSvn

    v39 v40  
    1 = Installing current version of ANUGA research code on Ubuntu  =
     1= Installing current version of ANUGA research code on Ubuntu  14.04 =
     2
     3
     4We need {{{subversion}}} to install {{{anuga}}}.
     5
     6Use {{{apt-get}}} to install subversion via
     7
     8{{{
     9sudo apt-get install subversion
     10}}}
     11
     12Now from your home directory, we can get the {{{anuga}}} source via
     13
     14{{{
     15svn checkout https://anuga.anu.edu.au/svn/anuga/trunk/anuga_core anuga_core
     16}}}
     17
     18q
     19
     20
    221
    322== Packages to install ==
     
    625
    726{{{
    8 sudo apt-get install subversion python-dev python-numpy python-scipy python-matplotlib netcdf-bin libnetcdf-dev python-gdal
     27sudo apt-get install subversion python-dev python-numpy python-scipy python-matplotlib netcdf-bin libnetcdf-dev libhdf5-serial-dev python-gdal  python-pip
    928}}}
    1029
     
    1938}}}
    2039
    21 === Scientific python ===
     40=== Other Python Packages ===
    2241
    23 We use scientific python to provide netcdf
    24 support in python.
    25 
    26 The default python-scientific provided by Ubuntu is
    27 version 2.8, and this leads to segmentation
    28 faults (at least on 32 bit machines) in Ubuntu 12.04.
    29 
    30 So we need to install scientific python version 2.9.1 from source.
    31 Get Scientific python 2.9.1 source.
     42We also need a few other python packages. We can use {{{pip}}} to install these via the command
    3243
    3344{{{
    34 wget https://sourcesup.renater.fr/frs/download.php/3420/ScientificPython-2.9.1.tar.gz .
     45sudo pip install nose netCDF4 pyproj
    3546}}}
    3647
     48=== Parallel support ===
    3749
    38 You will need to manually extract via the tar command, i.e.
     50On {{{Linux}}} it is easy to setup parallel support. You can use either {{{mpich2}}} or {{{openmpi}}}.
     51
     52Here is the command to install {{{mpich2}}} support
    3953
    4054{{{
    41 tar xvf ScientificPython-2.9.1.tar.gz
     55sudo apt-get install mpich2
    4256}}}
    4357
    44 You should end up with a directory {{{ScientificPython-2.9.1}}}
     58We interface {{{mpi}}} with {{{Python}}} via the {{{pypar}}} package.
    4559
    46 Change into the directory and install scientific python via
     60Download {{{pypar}}} with
    4761
    4862{{{
     63svn checkout https://github.com/daleroberts/pypar
     64}}}
     65
     66and then change into the {{{pypar}}} directory and install, via
     67{{{
     68pushd pypar
    4969python setup.py build
    5070sudo python setup.py install
     71popd
    5172}}}
    5273
     
    6990This should produce an anuga_core directory in your home directory
    7091
    71 === Setup PYTHONPATH ===
    72 
    73 We need to tell python where the anuga source code is located.
    74 This is done via the {{{PYTHONPATH}}} environment variable.
    75 
    76 Put the following in your .bashrc file (if you use the bash shell).
    77 
    78 {{{
    79 export PYTHONPATH=/home/******/anuga_core/source
    80 }}}
    81 
    82 where the {{{******}}} should be replaced by the name of your home directory.    '''Note the inclusion of {{{/source}}} in the name of the file.''' With some versions of Linux you need to put this command in the file {{{.profile}}}
    83 
    84 You should rerun your .bashrc file with
    85 
    86 {{{
    87 source .bashrc
    88 }}}
    89 
    90 Actually it is usually safer to fire up a new terminal to see if you have been successful in setting
    91 up the PYTHONPATH
    92 
    93 You can check your PYTHONPATH with the command
    94 
    95 {{{
    96 printenv PYTHONPATH
    97 }}}
    98 
    9992
    10093=== Compile ANUGA Code ===
    10194
    102 Now go to the directory anuga_core and compile the anuga files via:
     95Now go to the directory anuga_core and install via:
    10396
    10497{{{
    105 python compile_all.py
     98python setup.py build
     99sudo python setup.py install
    106100}}}
    107101
     
    111105
    112106{{{
    113 python test_all.py
     107python runtests.py
    114108}}}
    115109