Changes between Version 41 and Version 42 of InstallUbuntuSvn
- Timestamp:
- Mar 11, 2015, 4:47:02 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InstallUbuntuSvn
v41 v42 2 2 3 3 4 We need {{{subversion}}} (or {{ git}}) to install {{{anuga}}}.4 We need {{{subversion}}} (or {{{git}}}) to install {{{anuga}}}. 5 5 6 Use {{{apt-get}}} to install subversionvia6 Use {{{apt-get}}} to install {{{subversion}}} via 7 7 8 8 {{{ … … 16 16 }}} 17 17 18 q 18 We 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. 19 19 20 21 22 == Packages to install == 23 24 Install the following packages via the commands 20 Change into the newly downloaded {{{{anuga_core}}} directory and run the installation script (this will take 5 to 10 minutes depending on your network connection) 25 21 26 22 {{{ 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 23 cd anuga_core 24 bash tools/install_ubuntu.sh 28 25 }}} 29 26 30 Be sure that the version of {{{python}}} you are using is 2.7. This is the version for which we are developing. 27 If all has been successful then {{{anuga}}} should be installed. 31 28 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: 29 To check the installation run the unit tests via: 105 30 106 31 {{{ … … 120 45 }}} 121 46 122 Then again from the {{{anuga_core}}} directory recompilethe code and check the unit tests via47 Then again from the {{{anuga_core}}} directory build and install the code and check the unit tests via 123 48 124 49 {{{ 125 python compile_all.py 126 python test_all.py 50 python setup.py build 51 sudo python setup.py install 52 python runtests.py 127 53 }}}