Changeset 7299
- Timestamp:
- Jul 3, 2009, 4:34:48 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/documentation/user_manual/anuga_installation_guide.tex
r6960 r7299 57 57 58 58 To run ANUGA you will need a Windows PC (XP or Vista) or a Linux PC with at 59 least 512MB RAM. 59 least 512MB RAM. As ANUGA is a memory-intensive numerical system, more memory is better than less. 60 60 61 61 The viewer (Windows only) requires a graphics adapter that … … 64 64 Intel(R) 82915G Express chipset family. 65 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 69 ANUGA had a build number of 7163. 70 71 Where the text below refers to a specific package file such as \code{python-2.5.msi} you will find that 72 file in a download area linked through the \emph{numpy_support_software} link on the page 73 \url{https://datamining.anu.edu.au/anuga/wiki/NumpyInstall}. 74 66 75 67 76 \section{Installation} 68 77 69 Below are the install procedures for Windows XP, Windows Vista and Linux.70 71 \subsection{Quick install - Windows XP }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)} 72 81 \label{sec:winxp} 73 82 74 83 This procedure assumes that you do not have python installed on the target machine. 75 84 If you do have a python installed already then skip the installation of python as 76 long as you have version 2. 3or later installed.77 78 \begin{ enumerate}79 \item Install the support software .80 These packages are available from either:81 \begin{itemize}82 \item The supplied ANUGA distribution folder: \code{pre_requisites$\backslash$2.5}. 83 Install in order:85 long as you have version 2.5 or later installed. 86 87 \begin{itemize} 88 \item Install the support software, in order. 89 \begin{enumerate} 90 \item Execute \code{python-2.5.4.msi} to install python. 91 92 \item Install MinGW from \code{MinGW-5.1.4.exe}. Install components: 84 93 \begin{enumerate} 85 \item Execute \code{python-2.5.msi} to install python. 86 \item Execute \code{Numeric-23.8.2.win32-py2.5.exe} to install Numeric Python. 87 \item Execute \code{ScientificPython-2.7.8.win32-py2.5.exe} to install Scientific Python. 88 \item Execute \code{MinGW-5.1.4.exe} to install MinGW. 89 \end{enumerate} and then unpack \code{netcdf-3.6.1-win32dll.zip} into a folder that is available on the system path. 90 We suggest unpacking it into \code{C:$\backslash$bin}. 91 \item The Internet. Install in order: 92 \begin{enumerate} 93 \item \url{http://www.python.org/download/}. Click on the \code{Python 2.5.x Windows installer} link to get 94 \code{python-2.5.x.msi}. Execute this file to install python. 95 \item \url{http://sourcesup.cru.fr/frs/?group\%5Fid=180}. Download \code{Numeric-23.8.2.win32-py2.5.exe} 96 and execute it to install Numeric Python. 97 \item \url{http://sourcesup.cru.fr/frs/?group\%5Fid=180}. Download \code{ScientificPython-2.X.X.win32-py2.5.exe} 98 and execute it to install Scientific Python. 99 \item \url{http://sourceforge.net/project/showfiles.php?group\%5Fid=2435}. Click on the \code{Download} link for 100 the \code{Automated MinGW Installer}. Download and execute the file \code{MinGW-5.X.X.exe} to install the MinGW environment. 101 Note that you need a working internet connection to install WinGW. 102 \item \url{http://www.unidata.ucar.edu/software/netcdf/binaries.html}. Click on the 103 \code{Windows DLL} link in the NetCDF 3.6.1 section. This will download the file \code{netcdf-3.6.1-win32.zip}. 104 Unpack this in a folder that is available on the system path. 105 We suggest unpacking it into \code{C:$\backslash$bin}. 106 \end{enumerate} 107 \end{itemize} 94 \item MinGW base tools 95 \item g++ compiler 96 \item MinGW Make 97 \end{enumerate} 98 Note that you will need an internet connection for the above install. 99 100 \item Execute \code{numpy-1.3.0-win32-superpack-python2.5.exe} to install numpy. 101 102 \item Execute \code{netCDF_binary_4.0.exe} to install NetCDF. 103 104 \item Execute \code{ScientificPython-2.9.0.win32-py2.5.exe} to install Scientific Python. 108 105 109 \item Add the following to the PATH environment variable: 110 \begin{verbatim}PATH=C:\Python25;C:\MingW\bin;C:\bin\end{verbatim} 106 \item Execute \code{matplotlib-0.98.5.2.win32-py2.5.exe} to install matplotlib. 107 \end{enumerate} 108 109 \item Add the following to the end of the PATH environment variable: 110 \begin{verbatim};C:\Python25;C:\MingW\bin;C:\netcdf4\bin\end{verbatim} 111 111 For details on how to do this under Windows please refer to Appendix \ref{sec:setwindowspath}. 112 113 Note that if you have another version of python installed, 2.4 say, you would replace any 114 \code{Python25} above with \code{Python24}. 115 A similar replacement should be made in all following steps wherever you see \code{Python25}. 116 112 \end{itemize} 113 114 \subsubsection{ANUGA Installation} 115 \label{sec:ANUGA} 116 117 \begin{itemize} 117 118 \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 - 118 119 the remedy is to rename them back or use another browser such as Firefox.} … … 152 153 \url{http://datamining.anu.edu.au/\%7Eole/anuga/user\%5Fmanual/anuga\%5Fuser\%5Fmanual.pdf}) 153 154 and view the resulting \code{.sww} files with the ANUGA viewer. 154 \end{ enumerate}155 \end{itemize} 155 156 156 157 … … 167 168 \label{sec:winvista} 168 169 169 There has been one reported instance of ANUGA being installed successfully on Windows Vista. 170 The following steps should be read in conjunction with the windows XP procedures above: 171 172 \begin{enumerate} 173 \item Install \code{python-2.5.msi}. 174 \item Add the directory \code{C:$\backslash$Python25} to the \code{PATH} environment variable (appendix \ref{sec:setwindowspath}). 175 \item Install \code{Numeric-23.8.2.win32-py2.5.exe} (as administrator). 176 \item Install \code{ScientificPython-2.7.8.win32-py2.5.exe} (as administrator). 177 \item Install \code{MinGW-5.1.4.exe} (as administrator). Use the default package selection. Don't use old packages and let it make fresh downloads. 178 \item Unpack \code{netcdf-3.6.1-beta1-win32dll.zip} into \code{C:$\backslash$bin}. 179 \item Add the directory \code{C:$\backslash$bin} to the \code{PATH} environment variable (appendix \ref{sec:setwindowspath}). 180 \item Install \code{pysco-1.6.win32-py2.5.exe} (as administrator). 181 \item Install \code{matplotlib-0.91.2.win32-py2.5.exe} (as administrator). 182 \item Install \code{numpy-1.1.0-win32-superpack-python2.5.exe} (as administrator). 183 \item Check that the system variable \code{PATH} contains 184 \code{C:$\backslash$Python2.5;C:$\backslash$Python25$\backslash$DLLs;C:$\backslash$bin;C:$\backslash$MinGW$\backslash$bin} 185 (appendix \ref{sec:setwindowspath}). 186 \item Now follow the Windows XP install steps from the ANUGA source code install step. 187 \end{enumerate} 188 189 Some of the installed packages above are optional and may not be required, but this is the reported working install we have received. 170 The installation of the suuport software and the ANUGA software should be the same as for Windows XP above. 171 The installation and use of ANUGA under Windows Vista has not been heavily tested. Feedback on any aspect 172 of using ANUGA under Vista is welcomed. 190 173 191 174 \subsection{Quick install - Linux} … … 197 180 The steps below assume that you do not have python installed on the target machine. 198 181 If you do have a python installed already then skip the installation of python as 199 long as you have version 2. 3or later.182 long as you have version 2.5 or later. 200 183 201 184 Note that even if you already have python installed you should still check if things like 202 185 \code{python-dev} and \code{python-profiler} need to be installed. 203 186 204 \begin{itemize} 205 \item Install support software (in order): 206 \begin{enumerate} 207 \item Install python development environment, either through Synaptic or by: 208 \begin{verbatim}sudo apt-get install python python-dev python-profiler\end{verbatim} 209 \item Install Numeric Python, either through Synaptic or by: 210 \begin{verbatim}sudo apt-get install python-numeric\end{verbatim} 211 \item Install Scientific Python, either through Synaptic or by: 212 \begin{verbatim}sudo apt-get install python-scientific\end{verbatim} 213 \item Install NetCDF, either through Synaptic or by: 214 \begin{verbatim}sudo apt-get install python-netcdf\end{verbatim} 215 \item Install \code{gcc} and its development environment if you don't have it, either through Synaptic or by: 216 \begin{verbatim}sudo apt-get install gcc libc6-dev\end{verbatim} 217 Ensure that \code{libc6-dev} is installed even if \code{gcc} is already installed. 218 \end{enumerate} 187 \subsubsection{Support Software - Linux 32 bit} 188 \label{sec:linux32bit} 189 190 Install support software (in order): 191 \begin{enumerate} 192 \item Install the python development environment, either through Synaptic or by: 193 \begin{verbatim}sudo apt-get install python python-dev python-profiler\end{verbatim} 194 If you already have python 2.5 or later installed, don't include \code{python} above. 195 196 \item Install g++, either through Synaptic or by: 197 \begin{verbatim}sudo apt-get install g++\end{verbatim} 198 199 \item Install the numpy package, either through Synaptic or by: 200 \begin{verbatim}sudo apt-get install python-numpy\end{verbatim} 201 202 \item Install the NetCDF package from the .tar.gz file: 203 \begin{verbatim}tar xzf netcdf.tar.gz 204 cd netcdf-4.0.1 205 ./configure 206 make check 207 sudo make install 208 cd\end{verbatim} 209 210 \item Install the ScientificPython package from the .tar.gz file: 211 \begin{verbatim}tar xzf ScientificPython-2.9.0.tar.gz 212 cd ScientificPython-2.9.0 213 python setup.py build --numpy 214 sudo python setup.py install 215 cd\end{verbatim} 216 217 \item Install matplotlib, either through Synaptic or by: 218 \begin{verbatim}sudo apt-get install python-matplotlib\end{verbatim} 219 \end{enumerate} 220 221 \subsubsection{Support Software - Linux 64 bit} 222 \label{sec:linux64bit} 223 224 Install support software (in order): 225 \begin{enumerate} 226 \item Install the python development environment, either through Synaptic or by: 227 \begin{verbatim}sudo apt-get install python python-dev python-profiler\end{verbatim} 228 If you already have python 2.5 or later installed, don't include \code{python} above. 229 230 \item Install g++, either through Synaptic or by: 231 \begin{verbatim}sudo apt-get install g++\end{verbatim} 232 233 \item Define a CFLAGS value: 234 \begin{verbatim}export CFLAGS=-fPIC\end{verbatim} 235 236 \item Install the numpy package, either through Synaptic or by: 237 \begin{verbatim}sudo apt-get install python-numpy\end{verbatim} 238 239 \item Install the NetCDF package from the .tar.gz file: 240 \begin{verbatim}tar xzf netcdf.tar.gz 241 cd netcdf-4.0.1 242 ./configure 243 make check 244 sudo make install 245 cd\end{verbatim} 246 247 \item Install the ScientificPython package from the .tar.gz file: 248 \begin{verbatim}tar xzf ScientificPython-2.9.0.tar.gz 249 cd ScientificPython-2.9.0 250 python setup.py build --numpy 251 sudo python setup.py install 252 cd\end{verbatim} 253 254 \item Install matplotlib, either through Synaptic or by: 255 \begin{verbatim}sudo apt-get install python-matplotlib\end{verbatim} 256 \end{enumerate} 257 258 \subsubsection{ANUGA Installation - 32 or 64 bit} 259 \label{sec:ANUGA32-64bit} 260 261 \begin{enumerate} 219 262 \item Get the ANUGA source from \url{http://sourceforge.net/projects/anuga} (\code{anuga-1.0_5789.tgz} say), 220 263 and expand it into the python site-packages directory \code{/usr/lib/python2.5/site-packages}. 221 264 In the unpacked ANUGA directory \code{/usr/lib/python2.5/site-packages/anuga} run the command: 222 265 \begin{verbatim}sudo python compile_all.py\end{verbatim} 266 223 267 \item In the ANUGA root directory (\code{/usr/lib/python2.5/site-packages/anuga}) 224 268 run the test suite: 225 269 \begin{verbatim}python test_all.py\end{verbatim} ANUGA has been succesfully installed if the tests pass. 270 226 271 \item To verify that ANUGA succesfully reproduces a series of validation examples, go 227 272 to the directory … … 231 276 \begin{verbatim}python validate_all.py\end{verbatim} 232 277 This may take some time. 233 234 \end{itemize} 278 \end{enumerate} 235 279 236 280 \section{Optional but recommended software} 237 281 This software is not required to run the ANUGA toolbox, but it is recommended. 238 282 \begin{itemize} 239 \item psyco. Speeds up ANUGA by about 30\%. Under Ubuntu install either through Synaptic or by: 283 \item psyco. Speeds up ANUGA by about 30\%, so is strongly recommended. 284 Under Ubuntu install either through Synaptic or by: 240 285 \begin{verbatim}sudo apt-get install python-psyco\end{verbatim} 241 286 Under Windows install the file \code{psyco-1.6.win32-py25.exe} 242 which you can find from the \url{http://psyco.sourceforge.net/download.html} page. 243 \item matplotlib. For quality 2d plotting (moving towards mandatory requirement). Under Ubuntu install either through Synaptic or by: 244 \begin{verbatim}sudo apt-get install python-matplotlib\end{verbatim} 245 Under Windows install the file \code{matplotlib-0.98.3.win32-py2.5.exe} 246 which you can find from the \url{http://sourceforge.net/projects/matplotlib} page. 287 which you can find on the \url{http://psyco.sourceforge.net/download.html} page. 288 247 289 \item VTK. The Visualization Toolkit. Under Ubuntu install either through Synaptic or by: 248 290 \begin{verbatim}sudo apt-get install python-vtk\end{verbatim} 249 Under Windows install the file \code{vtk-5. 2.0-win32.exe}250 from the \url{http://www.vtk.org/ get-software.php} page.291 Under Windows install the file \code{vtk-5.4.2-win32.exe} 292 from the \url{http://www.vtk.org/VTK/resources/software.html} page. 251 293 \end{itemize} 252 294
Note: See TracChangeset
for help on using the changeset viewer.