Changes between Version 41 and Version 42 of InstallUbuntuSvn


Ignore:
Timestamp:
Mar 11, 2015, 4:47:02 PM (10 years ago)
Author:
steve
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallUbuntuSvn

    v41 v42  
    22
    33
    4 We need {{{subversion}}} (or {{git}}) to install {{{anuga}}}.
     4We need {{{subversion}}} (or {{{git}}}) to install {{{anuga}}}.
    55
    6 Use {{{apt-get}}} to install subversion via
     6Use {{{apt-get}}} to install {{{subversion}}} via
    77
    88{{{
     
    1616}}}
    1717
    18 q
     18We need to install a fairly large number of packages, but we a script ({{{tools/install_ubuntu.sh}}}) which will run through the installation process for you.
    1919
    20 
    21 
    22 == Packages to install ==
    23 
    24 Install the following packages via the commands
     20Change into the newly downloaded {{{{anuga_core}}} directory and run the installation script (this will take 5 to 10 minutes depending on your network connection)
    2521
    2622{{{
    27 sudo apt-get install subversion python-dev python-numpy python-scipy python-matplotlib netcdf-bin libnetcdf-dev libhdf5-serial-dev python-gdal  python-pip
     23cd anuga_core
     24bash tools/install_ubuntu.sh
    2825}}}
    2926
    30 Be sure that the version of {{{python}}} you are using is 2.7. This is the version for which we are developing.
     27If all has been successful then {{{anuga}}} should be installed.
    3128
    32 === Pre Ubuntu 12.04 ===
    33 Also need to install the following packages
    34 
    35 {{{
    36 sudo apt-get install python-argparse
    37 sudo apt-get install python-profiler
    38 }}}
    39 
    40 === Other Python Packages ===
    41 
    42 We also need a few other python packages. We can use {{{pip}}} to install these via the command
    43 
    44 {{{
    45 sudo pip install nose netCDF4 pyproj
    46 }}}
    47 
    48 === Parallel support ===
    49 
    50 On {{{Linux}}} it is easy to setup parallel support. You can use either {{{mpich2}}} or {{{openmpi}}}.
    51 
    52 Here is the command to install {{{mpich2}}} support
    53 
    54 {{{
    55 sudo apt-get install mpich2
    56 }}}
    57 
    58 We interface {{{mpi}}} with {{{Python}}} via the {{{pypar}}} package.
    59 
    60 Download {{{pypar}}} with
    61 
    62 {{{
    63 svn checkout https://github.com/daleroberts/pypar
    64 }}}
    65 
    66 and then change into the {{{pypar}}} directory and install, via
    67 {{{
    68 pushd pypar
    69 python setup.py build
    70 sudo python setup.py install
    71 popd
    72 }}}
    73 
    74 == Installing anuga ==
    75 
    76 Now we should have installed all the packages necessary to run anuga.
    77 So now to actually installing anuga.
    78 
    79 === Checkout anuga via svn ===
    80 
    81 First we need to get the actual anuga source code. We do this by checking out the anuga
    82 repository using subversion.
    83 
    84 From your home directory run:
    85 
    86 {{{
    87 svn checkout https://anuga.anu.edu.au/svn/anuga/trunk/anuga_core anuga_core
    88 }}}
    89 
    90 This should produce an anuga_core directory in your home directory
    91 
    92 
    93 === Compile ANUGA Code ===
    94 
    95 Now go to the directory anuga_core and install via:
    96 
    97 {{{
    98 python setup.py build
    99 sudo python setup.py install
    100 }}}
    101 
    102 === Run Unit tests ===
    103 
    104 From the anuga_core directory run the unit tests via:
     29To check the installation run the unit tests via:
    10530
    10631{{{
     
    12045}}}
    12146
    122 Then again from the {{{anuga_core}}} directory recompile the code and check the unit tests via
     47Then again from the {{{anuga_core}}} directory build and install the code and check the unit tests via
    12348
    12449{{{
    125 python compile_all.py
    126 python test_all.py
     50python setup.py build
     51sudo python setup.py install
     52python runtests.py
    12753}}}