Changeset 8083 for branches/anuga_1_2_1/anuga_core/documentation/user_manual/anuga_installation_guide.tex
- Timestamp:
- Nov 24, 2010, 4:55:55 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/anuga_1_2_1/anuga_core/documentation/user_manual/anuga_installation_guide.tex
r7527 r8083 3 3 \title{ANUGA Installation Guide} 4 4 5 %\author{Ole Nielsen, Duncan Gray, Jane Sexton}6 7 5 \usepackage{graphicx} 8 6 \usepackage{hyperref} 9 7 10 8 % Please at least include a long-lived email address; 11 9 % the rest is at your discretion. 12 10 \authoraddress{Geoscience Australia \\ 13 Email: \email{ nariman.habili@ga.gov.au}11 Email: \email{anuga@ga.gov.au} 14 12 } 15 13 … … 56 54 \label{sec:requirements} 57 55 58 To run ANUGA you will need a Windows PC (XP or Vista) or a Linux PC with at56 To run ANUGA you will need a Windows PC (XP, Vista or 7) or a Linux PC with at 59 57 least 512MB RAM. As ANUGA is a memory-intensive numerical system, more memory is better than less. 60 58 61 59 The 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 60 is OpenGL compatible. It has been tested with ATI, NVIDIA and Mobile Intel(R) GM45 Express chipsets. 61 62 The instructions below are written for the numpy version of ANUGA. ANUGA changed from 63 relying on the Numeric package to the numpy package early in July, 2009. If you have a Numeric ANUGA, 64 you should refer to the installation instructions for that version. The last Numeric version of 69 65 ANUGA had a build number of 7163. 70 66 … … 76 72 \section{Installation} 77 73 78 Below are the install procedures for Windows XP, Windows Vista (both32 bit) and Linux (32 and 64 bit).79 80 \subsection{Quick install - Windows XP (32 bit)}74 Below 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)} 81 77 \label{sec:winxp} 82 78 … … 90 86 run the test suite (optional) and then run a series of validation examples (optional). This may take some time. 91 87 Try 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}) 93 89 and view the resulting \code{.sww} files with the ANUGA viewer. 94 90 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 as97 %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 tools107 % \item g++ compiler108 % \item MinGW Make109 % \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, go144 % to the directory145 % \linebreak146 % \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 at165 % \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}168 91 169 92 … … 177 100 %details. 178 101 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 aspect184 of using ANUGA under Vista is welcomed.185 186 102 \subsection{Quick install - Linux} 187 103 \label{sec:linux} 188 104 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} 105 Please note that the following applies only to Ubuntu 10.04 and 10.10. We currently do not 106 support any other Linux distributions. 107 108 Open a terminal and enter: 109 \begin{verbatim} 110 sudo add-apt-repository ppa:anuga/ppa 111 sudo apt-get update 112 sudo apt-get install python-anuga 113 \end{verbatim} 114 115 For the Ubuntu version, you do not need to run test_all.py or compile_all.py. They have already been done for you. 116 291 117 292 118 \section{Optional but recommended software} … … 309 135 \section{Testing} 310 136 311 In the ANUGA root directory, run the test suite: 137 If you install ANUGA directly from the SVN repository (not the Windows one-click installer or using apt-get install for Ubuntu), 138 you should run the unit tests to verify that all the tests pass. In the ANUGA root directory, run the test suite: 312 139 \begin{verbatim} 313 140 python test_all.py … … 361 188 environment "System variables". However, in case you do not have 362 189 permission 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.190 for Windows XP is shown here. Setting the variable for Windows Vista and 7 should be similar. 364 191 365 192 \setlength\fboxsep{0pt}
Note: See TracChangeset
for help on using the changeset viewer.