= Installation of the Viewer on Ubuntu = == Packages to Install == Install the following packages. {{{ sudo apt-get install libopenscenegraph-dev sudo apt-get install libgdal-dev sudo apt-get install make }}} == Download the Code == The latest version of the code is available from {{{googlecode}}}. Don't use the version on sourceforge. If subversion has not been install do that now via {{{ sudo apt-get install subversion }}} From your home directory, download the anuga viewer code via {{{ svn checkout http://anuga-viewer.googlecode.com/svn/trunk/ anuga-viewer }}} Change into the new directory {{{anuga-viewer}}}. From this directory build and install the viewer via {{{ make sudo make install }}} Finally we need to setup some environment variables. Put the following in your .bashrc file (if you use the bash shell). {{{ export SWOLLEN_BINDIR=/home/username/anuga-viewer/bin export PATH=$PATH:$SWOLLEN_BINDIR }}} (of course change {{{/home/username}}} to your own home directory. ) With some versions of linux you need to put this command in the file .profile You should rerun your {{{.bashrc}}} file with {{{ source .bashrc }}} Actually it is usually safer to fire up a new terminal to see if you have been successful in setting up the {{{PATH}}} and {{{SWOLLEN_BINDIR}}} You can check your {{{PATH}}} with the command {{{ printenv PYTHONPATH }}} == Check Installation === Change into the {{{anuga-viewer/data}}} directory and run the {{{anuga_viewer}}} via the command {{{ anuga_viewer cairns.sww }}}