Changes between Version 1 and Version 2 of InstallWindowsSvn


Ignore:
Timestamp:
Jan 29, 2013, 4:04:00 PM (12 years ago)
Author:
steve
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallWindowsSvn

    v1 v2  
    55Install 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.
    66
    7 So first install [http://code.google.com/p/pythonxy/ python xy] from
     7So 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.
    88
    9 
    10 === Pre Ubuntu 12.04 ===
    11 Also need to install the following packages
    12 
    13 {{{
    14 sudo apt-get install python-argparse
    15 sudo apt-get install python-profiler
    16 }}}
    179
    1810=== Scientific python ===
     
    2113support in python.
    2214
    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.
     15Unfortunately {{{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}}}.
    2616
    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.gz
    39 }}}
    40 
    41 You should end up with a directory {{{ScientificPython-2.9.1}}}
    42 
    43 Change into the directory and install scientific python via
    44 
    45 {{{
    46 python setup.py build
    47 sudo python setup.py install
    48 }}}
    4917
    5018== Installing anuga ==
     
    5624
    5725First 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:
     26repository using subversion. I suggest installing [http://tortoisesvn.net/ tortoise svn] and then checkout the following svn repository
    6127
    6228{{{
    63 svn checkout https://anuga.anu.edu.au/svn/anuga/trunk/anuga_core anuga_core
     29https://anuga.anu.edu.au/svn/anuga/trunk/anuga_core
    6430}}}
    6531
    66 This should produce an anuga_core directory in your home directory
     32This should produce an anuga_core directory
    6733
    6834=== Setup PYTHONPATH ===
     
    7137This is done via the {{{PYTHONPATH}}} environment variable.
    7238
    73 Put the following in your .bashrc file (if you use the bash shell).
    74 
    75 {{{
    76 export PYTHONPATH=/home/******/anuga_core/source
    77 }}}
    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 with
    82 
    83 {{{
    84 source .bashrc
    85 }}}
    86 
    87 Actually it is usually safer to fire up a new terminal to see if you have been successful in setting
    88 up the PYTHONPATH
    89 
    90 You can check your PYTHONPATH with the command
    91 
    92 {{{
    93 printenv PYTHONPATH
    94 }}}
    95 
    9639
    9740=== Compile ANUGA Code ===
    9841
    99 Now go to the directory anuga_core and compile the anuga files via:
     42Now go to the directory anuga_core and compile the anuga files via:
     43Fire up a cmd terminal, change to the {{{anuga_core}}} directory and run
    10044
    10145{{{
     
    11761== Updating ==
    11862
    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 }}}
     63From 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.
    12464
    12565Then again from the {{{anuga_core}}} directory recompile the code and check the unit tests via