Changes between Version 1 and Version 2 of InstallWindowsSvn
- Timestamp:
- Jan 29, 2013, 4:04:00 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InstallWindowsSvn
v1 v2 5 5 Install python (and associated packages). We use {{{python}}} as our programming environment and a number of standard python packages such as {{{numpy, scipy, matplotlib}}}. One of the easiest ways to install all the required (except for {{{netcdf}}} is to use the {{{python_xy}}} distribution. 6 6 7 So first install [http://code.google.com/p/pythonxy/ python xy] from7 So first install [http://code.google.com/p/pythonxy/ python xy] This will be a large download, but will provide an almost complete installation of {{{python}} for our needs. Choose the {{python 2.7}}} version. 8 8 9 10 === Pre Ubuntu 12.04 ===11 Also need to install the following packages12 13 {{{14 sudo apt-get install python-argparse15 sudo apt-get install python-profiler16 }}}17 9 18 10 === Scientific python === … … 21 13 support in python. 22 14 23 The default python-scientific provided by Ubuntu is 24 version 2.8, and this leads to segmentation 25 faults (at least on 32 bit machines) in Ubuntu 12.04. 15 Unfortunately {{{python xy}}} doesn't provide {{{scientific python}}}. A pre-compiled version is available from [http://www.lfd.uci.edu/~gohlke/pythonlibs/#scientificpython scientific python]. Be sure to choose the version matching your version of {{{python}}}. 26 16 27 So we need to install scientific python version 2.9.1 from source.28 Get Scientific python 2.9.1 source.29 30 {{{31 wget https://sourcesup.renater.fr/frs/download.php/3420/ScientificPython-2.9.1.tar.gz .32 }}}33 34 35 You will need to manually extract via the tar command, i.e.36 37 {{{38 tar xvf ScientificPython-2.9.1.tar.gz39 }}}40 41 You should end up with a directory {{{ScientificPython-2.9.1}}}42 43 Change into the directory and install scientific python via44 45 {{{46 python setup.py build47 sudo python setup.py install48 }}}49 17 50 18 == Installing anuga == … … 56 24 57 25 First we need to get the actual anuga source code. We do this by checking out the anuga 58 repository using subversion. 59 60 From your home directory run: 26 repository using subversion. I suggest installing [http://tortoisesvn.net/ tortoise svn] and then checkout the following svn repository 61 27 62 28 {{{ 63 svn checkout https://anuga.anu.edu.au/svn/anuga/trunk/anuga_coreanuga_core29 https://anuga.anu.edu.au/svn/anuga/trunk/anuga_core 64 30 }}} 65 31 66 This should produce an anuga_core directory in your home directory32 This should produce an anuga_core directory 67 33 68 34 === Setup PYTHONPATH === … … 71 37 This is done via the {{{PYTHONPATH}}} environment variable. 72 38 73 Put the following in your .bashrc file (if you use the bash shell).74 75 {{{76 export PYTHONPATH=/home/******/anuga_core/source77 }}}78 79 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}}}80 81 You should rerun your .bashrc file with82 83 {{{84 source .bashrc85 }}}86 87 Actually it is usually safer to fire up a new terminal to see if you have been successful in setting88 up the PYTHONPATH89 90 You can check your PYTHONPATH with the command91 92 {{{93 printenv PYTHONPATH94 }}}95 96 39 97 40 === Compile ANUGA Code === 98 41 99 Now go to the directory anuga_core and compile the anuga files via: 42 Now go to the directory anuga_core and compile the anuga files via: 43 Fire up a cmd terminal, change to the {{{anuga_core}}} directory and run 100 44 101 45 {{{ … … 117 61 == Updating == 118 62 119 From time to time you should update your version of anuga. This is fairly easy. From your {{{anuga_core}}} directory update the anuga code via the subversion command 120 121 {{{ 122 svn update 123 }}} 63 From time to time you should update your version of anuga. This is fairly easy. When you installed {{{tortoise svn}}} a few extra menu items are added to your right click menu in the file manager. Just choose "tortoise" update to update the code. 124 64 125 65 Then again from the {{{anuga_core}}} directory recompile the code and check the unit tests via