source: anuga_core/documentation/user_manual/anuga_installation_guide.tex @ 3888

Last change on this file since 3888 was 3888, checked in by ole, 17 years ago

Added quick-install info to installation guide

  • Property svn:keywords set to LastChangedDate LastChangedRevision LastChangedBy HeadURL Id
File size: 6.9 KB
RevLine 
[2377]1\documentclass{manual}
[2287]2
3
[2377]4\title{ANUGA Installation Guide}
5
[2287]6\author{Howard Silcock, Ole Nielsen, Duncan Gray, Jane Sexton}
7
[2377]8% Please at least include a long-lived email address;
9% the rest is at your discretion.
10\authoraddress{Geoscience Australia \\
11  Email: \email{ole.nielsen@ga.gov.au}
12}
[2287]13
[2377]14%Draft date
15\date{\today}                   % update before release!
[2422]16                % Use an explicit date so that reformatting
17                % doesn't cause a new date to be used.  Setting
18                % the date to \today can be used during draft
19                % stages to make it easier to handle versions.
[2377]20
[2422]21\release{1.0}           % release version; this is used to define the
22                % \version macro
[2377]23
[2422]24\makeindex          % tell \index to actually write the .idx file
25%\makemodindex          % If this contains a lot of module sections.
[2377]26
27
28
[2287]29\begin{document}
30\maketitle
31
32
33
[2377]34% This makes the contents more accessible from the front page of the HTML.
35\ifhtml
36\chapter*{Front Matter\label{front}}
37\fi
[2287]38
39
40
41
[2377]42\chapter{Introduction}
[2287]43
[2377]44This document outlines the required software for installing the Anuga toolbox.
45All components are licensed as open source and readily available from the net.
[2422]46
47
[3888]48\section{Quick install (Windows only)}
49
50This section provides the quickest path to getting ANUGA up and running on a Windows machine.
51For Linux and for more details please refer to Section \ref{sec:prerequisites}.
52
53\begin{enumerate} 
54  \item Download and install the Enthought version of Python2.4 from \url{http://code.enthought.com/enthon/}.
55  \item Add the following to the PATH environment variable
56    \begin{verbatim}
57      PATH=C:\Python24;C:\Python24\Enthought\MingW\bin;C:\Program Files\anuga_viewer
58    \end{verbatim} 
59  \item Unpack the ANUGA source code (anuga.tgz) in the python site-packages
60  directory (C:\Python24\Lib\site-packages)
61  \item In the ANUGA root directory (C:\Python24\Lib\site-packages\anuga), run the compilation script:
62    {\small \begin{verbatim}
63        python compile_all.py
64    \end{verbatim}}
65  \item In the ANUGA root directory, run the test suite:
66    {\small \begin{verbatim}
67        python test_all.py
68    \end{verbatim}}
69    ANUGA has been succesfully installed if the tests pass.
70\end{enumerate}   
71
72To install the anuga\_viewer
73\begin{enumerate} 
74  \item Unpack the distribution () in
75    \begin{verbatim} 
76      C:\Program Files\anuga_viewer
77    \end{verbatim}
78  \item Associate .sww files with the executable
79  \begin{verbatim} 
80    C:\Program Files\anuga_viewer\animate.exe
81  \end{verbatim}       
82  \item Double click on the test file
83    \begin{verbatim} 
84      C:\Program Files\anuga_viewer\cylinders.sww
85    \end{verbatim}       
86\end{enumerate} 
87
88Try the demos provided in the ANUGA root directory (also discussed in the ANUGA user manual
89\url{http://datamining.anu.edu.au/~ole/anuga/user_manual/anuga_user_manual.pdf}) and
90view the resulting sww files with the anuga\_viewer.
91
92
93
[2377]94\section{Pre-requisites}
[3888]95\label{sec:prerequisites}
[2377]96
[3888]97The Anuga software core (shallow\_water, pmesh, least\_squares, ...) depends on the following:
[2287]98
[3888]99
[2422]100\begin{itemize}
[3888]101  \item python 2.3 or later \url{http://www.python.org}/footnote{Note, the
102  dll python2X.dll is needed to compile ANUGA, but is not always
[3792]103  automatically added for versions 2.4 and above.  Install it into the
[3888]104  python2X directory, if you need it.}
[3490]105  \item python-numeric for Linux.  It's called Numeric in Windows. 
[3888]106  %\item python-dev (Interestingly, numeric seems to be installed as
107  %well) for Linux.  This is not necessary for Windows.
[3490]108  \item python-scientific (to provide python-netcdf) for Linux.  It's
109    called ScientificPython in Windows.
[3888]110  \item NETCDF.  Extract the file netcdf.dll, and put in C://Windows//System32// (Windows XP) or C://WINNT//System32 (Windows NT or 2000).     
[3490]111  \item A C compiler such as gcc (from GNU in case of Linux and MinGW
112  in case of Windows)
[3888]113  %\item scons for automatically compiling the distribution.
[2422]114\end{itemize}
115
[3888]116Note: All of these can be installed in one go on Windows platforms by using the Enthought Python
117distribution available at \url{http://code.enthought.com/enthon/}.
[2422]118
[2377]119\section{Recommended software}
[2287]120
[2422]121\begin{itemize}
[2287]122  \item psyco \url{http://psyco.sourceforge.net/index.html}
[3888]123  %\item visual python \url{http://vpython.org}
[2934]124  \item matplotlib (pylab) for quality 2d plotting (moving towards mandatory requirement)
[2788]125  \item VTK \url{http://mayavi.sourceforge.net/dwnld/vtk/win32/}
126\end{itemize}
[2287]127
128
129
[2377]130\section{System configuration}
[2287]131
132
[3888]133The system path on Win32 architectures must contain the directories (this examples assumes the
134Enthought Python 2.4 distribution has been installed. Path names may vary depending on the
135exact configuration).
[2422]136\begin{verbatim}
[3888]137  PATH=C:\Python24;C:\Python24\Enthought\MingW\bin;C:\Program Files\anuga_viewer
[2422]138\end{verbatim}
[3888]139The path should be analoguous for Unix operating systems.
[2287]140
[3888]141If anuga is not installed in the python site-packages directory the root directory for all
142anuga/inundation modules must be on the pythonpath, e.g.\
[2422]143\begin{verbatim}
[3816]144PYTHONPATH=C:\anuga_core\source
[2422]145\end{verbatim}
[2287]146
147
148
[2422]149
150
[3816]151\section{Installation of source zip file}
152Get a source zip file, for example, anuga_source_3807.zip, and expand
[3888]153it in the python site-packages directory (C:\Python24\Lib\site-packages)
[2287]154
[3888]155In the ANUGA root directory (C:\Python24\Lib\site-packages\anuga), run the compilation script:
[2287]156{\small \begin{verbatim}
[3816]157  python compile_all.py
[2287]158\end{verbatim}}
159
[3822]160%or (in anuga_core)
161% scons install
162% scons -c #(clean)
[2287]163
164
165\subsection{Testing}
166
[2377]167In the ANUGA root directory, run the test suite:
[2287]168{\small \begin{verbatim}
169  python test_all.py
170\end{verbatim}}
[3888]171ANUGA has been succesfully installed if the tests pass as follows:
[2287]172
[3888]173{\tiny
[2422]174\begin{verbatim}
[3888]175  ...
176  test_data_manager.py
177  test_interpolate_sww.py
178  test_mesh.py
179  test_mesh_interface.py
180  test_triangmodule.py
181  test_triangmoduleII.py
182  test_advection.py
183............................................................................................................................................
184............................................................................................................................................
185............................................................................................................................................
186............................................................................................................................................
187.................................
188----------------------------------------------------------------------
189Ran 593 tests in 42.712s
[2287]190
[3888]191OK
192\end{verbatim} }
[2287]193
194
195
[3888]196%\section{Other stuff to be included}
197%
198%\begin{verbatim}
199%Install tortoise from downloads (ITs didn't integrate wih explorer).
200%In settings set proxy to proxy.agso.gov.au  8080
201%%
202%
203%Install swollen from latest distro (in subversion)
204%
205%
206%\end{verbatim}
[2287]207
208
209
[2377]210
[2422]211
[2287]212\end{document}
Note: See TracBrowser for help on using the repository browser.