Ignore:
Timestamp:
Nov 24, 2010, 4:55:55 PM (13 years ago)
Author:
habili
Message:

Bug fixes, including correct use of starttime and duration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/anuga_1_2_1/anuga_core/documentation/user_manual/anuga_installation_guide.tex

    r7527 r8083  
    33\title{ANUGA Installation Guide}
    44
    5 %\author{Ole Nielsen, Duncan Gray, Jane Sexton}
    6 
    75\usepackage{graphicx}
    8 
     6\usepackage{hyperref}
    97
    108% Please at least include a long-lived email address;
    119% the rest is at your discretion.
    1210\authoraddress{Geoscience Australia \\
    13   Email: \email{nariman.habili@ga.gov.au}
     11  Email: \email{anuga@ga.gov.au}
    1412}
    1513
     
    5654\label{sec:requirements}
    5755
    58 To run ANUGA you will need a Windows PC (XP or Vista) or a Linux PC with at
     56To run ANUGA you will need a Windows PC (XP, Vista or 7) or a Linux PC with at
    5957least 512MB RAM.  As ANUGA is a memory-intensive numerical system, more memory is better than less.
    6058
    6159The viewer (Windows only) requires a graphics adapter that
    62 is OpenGL compatible. It has been tested with ATI FireGL X1 cards
    63 and the NVIDIA family. It may not work with other cards such as those from the
    64 Intel(R) 82915G Express chipset family.
    65 
    66 The instructions below are written for the numpy version of ANUGA.  ANUGA changed from
    67 relying on the Numeric package to the numpy package early in July, 2009.  If you have a Numeric ANUGA,
    68 you should refer to the installation instructions for that version.  The last Numeric version of
     60is OpenGL compatible. It has been tested with ATI, NVIDIA and Mobile Intel(R) GM45 Express chipsets.
     61
     62The instructions below are written for the numpy version of ANUGA. ANUGA changed from
     63relying on the Numeric package to the numpy package early in July, 2009. If you have a Numeric ANUGA,
     64you should refer to the installation instructions for that version. The last Numeric version of
    6965ANUGA had a build number of 7163.
    7066
     
    7672\section{Installation}
    7773
    78 Below are the install procedures for Windows XP, Windows Vista (both 32 bit) and Linux (32 and 64 bit).
    79 
    80 \subsection{Quick install - Windows XP (32 bit)}
     74Below are the install procedures for Windows XP, Windows Vista, Windows 7 (all 32 bit) and Linux (32 and 64 bit).
     75
     76\subsection{Quick install - Windows XP, Vista and 7 (32 bit)}
    8177\label{sec:winxp}
    8278
     
    9086run the test suite (optional) and then run a series of validation examples (optional). This may take some time.
    9187Try the demonstrations provided in the ANUGA directory \code{anuga\_demos} (discussed in the ANUGA user manual at
    92 \url{http://datamining.anu.edu.au/\%7Eole/anuga/user\%5Fmanual/anuga\%5Fuser\%5Fmanual.pdf})
     88\url{https://datamining.anu.edu.au/anuga/attachment/wiki/WikiStart/anuga_user_manual-1.2.0.pdf})
    9389and view the resulting \code{.sww} files with the ANUGA viewer.
    9490
    95 %This procedure assumes that you do not have python installed on the target machine.
    96 %If you do have a python installed already then skip the installation of python as
    97 %long as you have version 2.5 or later installed.
    98 %
    99 %\begin{itemize} 
    100 %  \item Install the support software, in order.
    101 %    \begin{enumerate}
    102 %      \item Execute \code{python-2.5.4.msi} to install python.
    103 %
    104 %      \item Install MinGW from \code{MinGW-5.1.4.exe}.  Install components:
    105 %        \begin{enumerate}
    106 %          \item MinGW base tools
    107 %          \item g++ compiler
    108 %          \item MinGW Make
    109 %        \end{enumerate}
    110 %        Note that you will need an internet connection for the above install.
    111 %
    112 %      \item Execute \code{numpy-1.3.0-win32-superpack-python2.5.exe} to install numpy.
    113 %
    114 %      \item Execute \code{netCDF_binary_4.0.exe} to install NetCDF.
    115 %
    116 %      \item Execute \code{ScientificPython-2.9.0.win32-py2.5.exe} to install Scientific Python.
    117 
    118 %      \item Execute \code{matplotlib-0.98.5.2.win32-py2.5.exe} to install matplotlib.
    119 %    \end{enumerate}
    120 
    121 %  \item Add the following to the end of the PATH environment variable:
    122 %    \begin{verbatim};C:\Python25;C:\MingW\bin;C:\netcdf4\bin\end{verbatim}
    123 %    For details on how to do this under Windows please refer to Appendix \ref{sec:setwindowspath}.
    124 %\end{itemize} 
    125 %
    126 %\subsubsection{ANUGA Installation}
    127 %\label{sec:ANUGA}
    128 %
    129 %\begin{itemize} 
    130 %  \item Unpack the ANUGA source code (\code{anuga-1.0_xxxx.tgz})\footnote{Internet Explorer has the habit of renaming the .tgz files to .gz -
    131 %                                                                          the remedy is to rename them back or use another browser such as Firefox.}
    132 %    in the python site-packages directory \code{C:$\backslash$Python25$\backslash$Lib$\backslash$site-packages}.
    133 %    This is often done in Windows by double clicking on the \code{.tgz} file and then 'browse to' the destination directory.
    134 %
    135 %  \item In the ANUGA root directory (\code{C:$\backslash$Python25$\backslash$Lib$\backslash$site-packages$\backslash$anuga}),
    136 %    run the compilation script (either from the commandline or by running it in IDLE):
    137 %    \begin{verbatim}python compile_all.py\end{verbatim}
    138 %
    139 %  \item In the ANUGA root directory (\code{C:$\backslash$Python25$\backslash$Lib$\backslash$site-packages$\backslash$anuga}),
    140 %    run the test suite (either from the commandline or by running it in IDLE):
    141 %    \begin{verbatim}python test_all.py\end{verbatim} ANUGA has been succesfully installed if the tests pass.
    142 %
    143 %  \item To verify that ANUGA succesfully reproduces a series of validation examples, go
    144 %    to the directory
    145 %    \linebreak
    146 %    \code{anuga_validation$\backslash$automated_validation_tests} under the ANUGA root directory where you can run:
    147 %    \begin{verbatim}python validate_all.py\end{verbatim}
    148 %    This may take some time.
    149 %
    150 %  \item To install the ANUGA viewer:
    151 %    \begin{enumerate}
    152 %      \item Unpack the distribution (\code{anuga_viewer_1.0.tgz}) into:
    153 %        \begin{verbatim}C:\Program Files\end{verbatim}
    154 %
    155 %      \item Double click on the test file:
    156 %        \begin{verbatim}C:\Program Files\anuga_viewer\cylinders.sww\end{verbatim}
    157 %
    158 %      \item Associate \code{.sww} files with the executable:
    159 %      \begin{verbatim}C:\Program Files\anuga_viewer\animate.exe\end{verbatim}       
    160 %      For details on how to do this under Windows please refer to Appendix \ref{sec:assocanimatesww}.
    161 %    \end{enumerate}
    162 %
    163 %    Try the demonstrations provided in the ANUGA directory \code{anuga\_demos}
    164 %    (discussed in the ANUGA user manual at
    165 %    \url{http://datamining.anu.edu.au/\%7Eole/anuga/user\%5Fmanual/anuga\%5Fuser\%5Fmanual.pdf})
    166 %    and view the resulting \code{.sww} files with the ANUGA viewer.
    167 %\end{itemize}   
    16891
    16992
     
    177100%details.
    178101
    179 \subsection{Quick install - Windows Vista}
    180 \label{sec:winvista}
    181 
    182 The installation of the support software and the ANUGA software should be the same as for Windows XP above.
    183 The installation and use of ANUGA under Windows Vista has not been heavily tested.  Feedback on any aspect
    184 of using ANUGA under Vista is welcomed.
    185 
    186102\subsection{Quick install - Linux}
    187103\label{sec:linux}
    188104
    189 The procedure to install onto a Linux platform is targetted at a Debian-like Linux, such as Ubuntu.
    190 If you use another Linux the overall procedure should be followed, although the details will vary.
    191 
    192 The steps below assume that you do not have python installed on the target machine.
    193 If you do have a python installed already then skip the installation of python as
    194 long as you have version 2.5 or later.
    195 
    196 Note that even if you already have python installed you should still check if things like
    197 \code{python-dev} and \code{python-profiler} need to be installed.
    198 
    199 \subsubsection{Support Software - Linux 32 bit}
    200 \label{sec:linux32bit}
    201 
    202 Install support software (in order):
    203 \begin{enumerate} 
    204   \item Install the python development environment, either through Synaptic or by:
    205     \begin{verbatim}sudo apt-get install python python-dev python-profiler\end{verbatim}
    206     If you already have python 2.5 or later installed, don't include \code{python} above.
    207 
    208   \item Install g++, either through Synaptic or by:
    209     \begin{verbatim}sudo apt-get install g++\end{verbatim}
    210 
    211   \item Install the numpy package, either through Synaptic or by:
    212     \begin{verbatim}sudo apt-get install python-numpy\end{verbatim}
    213 
    214   \item Install the NetCDF package from the .tar.gz file:
    215     \begin{verbatim}tar xzf netcdf.tar.gz
    216 cd netcdf-4.0.1
    217 ./configure
    218 make check
    219 sudo make install
    220 cd\end{verbatim}
    221 
    222   \item Install the ScientificPython package from the .tar.gz file:
    223     \begin{verbatim}tar xzf ScientificPython-2.9.0.tar.gz
    224 cd ScientificPython-2.9.0
    225 python setup.py build --numpy
    226 sudo python setup.py install
    227 cd\end{verbatim}
    228 
    229   \item Install matplotlib, either through Synaptic or by:
    230     \begin{verbatim}sudo apt-get install python-matplotlib\end{verbatim}
    231 \end{enumerate}   
    232 
    233 \subsubsection{Support Software - Linux 64 bit}
    234 \label{sec:linux64bit}
    235 
    236 Install support software (in order):
    237 \begin{enumerate} 
    238   \item Install the python development environment, either through Synaptic or by:
    239     \begin{verbatim}sudo apt-get install python python-dev python-profiler\end{verbatim}
    240     If you already have python 2.5 or later installed, don't include \code{python} above.
    241 
    242   \item Install g++, either through Synaptic or by:
    243     \begin{verbatim}sudo apt-get install g++\end{verbatim}
    244 
    245   \item Define a CFLAGS value:
    246     \begin{verbatim}export CFLAGS=-fPIC\end{verbatim}
    247 
    248   \item Install the numpy package, either through Synaptic or by:
    249     \begin{verbatim}sudo apt-get install python-numpy\end{verbatim}
    250 
    251   \item Install the NetCDF package from the .tar.gz file:
    252     \begin{verbatim}tar xzf netcdf.tar.gz
    253 cd netcdf-4.0.1
    254 ./configure
    255 make check
    256 sudo make install
    257 cd\end{verbatim}
    258 
    259   \item Install the ScientificPython package from the .tar.gz file:
    260     \begin{verbatim}tar xzf ScientificPython-2.9.0.tar.gz
    261 cd ScientificPython-2.9.0
    262 python setup.py build --numpy
    263 sudo python setup.py install
    264 cd\end{verbatim}
    265 
    266   \item Install matplotlib, either through Synaptic or by:
    267     \begin{verbatim}sudo apt-get install python-matplotlib\end{verbatim}
    268 \end{enumerate}   
    269 
    270 \subsubsection{ANUGA Installation - 32 or 64 bit}
    271 \label{sec:ANUGA32-64bit}
    272 
    273 \begin{enumerate} 
    274   \item Get the ANUGA source from \url{http://sourceforge.net/projects/anuga} (\code{anuga-1.0_5789.tgz} say),
    275     and expand it into the python site-packages directory \code{/usr/lib/python2.5/site-packages}.
    276     In the unpacked ANUGA directory \code{/usr/lib/python2.5/site-packages/anuga} run the command:
    277     \begin{verbatim}sudo python compile_all.py\end{verbatim}
    278 
    279   \item In the ANUGA root directory (\code{/usr/lib/python2.5/site-packages/anuga})
    280     run the test suite:
    281     \begin{verbatim}python test_all.py\end{verbatim} ANUGA has been succesfully installed if the tests pass.
    282 
    283   \item To verify that ANUGA succesfully reproduces a series of validation examples, go
    284     to the directory
    285     \linebreak
    286     \code{/usr/lib/python2.5/site-packages/anuga_validation/automated_validation_tests}
    287     where you can run validation tests to ensure the correct running of ANUGA:
    288     \begin{verbatim}python validate_all.py\end{verbatim}
    289     This may take some time.
    290 \end{enumerate}
     105Please note that the following applies only to Ubuntu 10.04 and 10.10. We currently do not
     106support any other Linux distributions.
     107
     108Open a terminal and enter:
     109\begin{verbatim}
     110sudo add-apt-repository ppa:anuga/ppa
     111sudo apt-get update
     112sudo apt-get install python-anuga
     113\end{verbatim}
     114
     115For the Ubuntu version, you do not need to run test_all.py or compile_all.py. They have already been done for you.
     116
    291117
    292118\section{Optional but recommended software}
     
    309135\section{Testing}
    310136
    311 In the ANUGA root directory, run the test suite:
     137If you install ANUGA directly from the SVN repository (not the Windows one-click installer or using apt-get install for Ubuntu),
     138you should run the unit tests to verify that all the tests pass. In the ANUGA root directory, run the test suite:
    312139\begin{verbatim}
    313140python test_all.py
     
    361188environment "System variables". However, in case you do not have
    362189permission to modify the system variable, then the method of setting the PATH environment "User variable"
    363 for Windows XP is shown here. Setting the variable for Windows Vista should be similar.
     190for Windows XP is shown here. Setting the variable for Windows Vista and 7 should be similar.
    364191
    365192\setlength\fboxsep{0pt}
Note: See TracChangeset for help on using the changeset viewer.