Skip to content

Latest commit

 

History

History
35 lines (18 loc) · 1.24 KB

INSTALL_ubuntu.rst

File metadata and controls

35 lines (18 loc) · 1.24 KB

Ubuntu Install

The following instructions will take you through installing Anuga Viewer on a completely fresh Linux distro, step by step.

  1. Install linux distro. I used ubuntu - http://www.ubuntu.com/getubuntu/download.
  2. To build anuga_viewer, install the following packages via:

    sudo apt-get install git build-essential libgdal-dev libcppunit-dev libopenscenegraph-dev
  3. Get the anuga-viewer source from github.:

    git clone https://github.com/GeoscienceAustralia/anuga-viewer.git

If you are using an old version of OpenSceneGraph (ie the default in Unbuntu 18.04) then clone the older version of the ANUGA Viewer via:

git clone -b 3.2 https://github.com/GeoscienceAustralia/anuga-viewer.git
  1. Now, you should be able to build anuga-viewer. Do the following in the anuga-viewer folder:

    make
    sudo make install
  2. Setup Environment variables in your .bashrc file:

    export SWOLLEN_BINDIR=/home/<<your_ubuntu_user_directory>>/anuga-viewer/bin
    export PATH=$PATH:$SWOLLEN_BINDIR
  3. From a new terminal, test the install by going to directory ~/anuga-viewer/data and running the following command (use escape to get out of the viewer):

    anuga_viewer cairns.sww