ug4
|
On this page you'll find short installation instructions for additional software that might be useful — or is even necessary — for working with ug4 (especially on clusters).
So, in case a software needed for a certain task is not available on the system (or has the wrong version number) one has to install it locally (unless you have administrator privileges - congratulations ...)
We propose the following procedures for which we assume that all additional software is installed in a directory local
directly in your home directory (version numbers are those of the most recent (stable) versions at the time this documentation was written).
A basic understanding of the used Unix tools (wget
, tar
, ...) is useful but not necessary (instructions should work "out of the box" — except for the version numbers — check for a version that is appropriate for you and adapt the respective file name).
Instead of using wget
, you can also use curl
(as is installed on Mac), like
curl -O http://www.cmake.org/files/v2.8/cmake-2.8.6.tar.gz
CMake can be installed with
uginstall cmake
see uginstall - Scripts for installation.
If that fails: You may install CMake through a pre-built installer, which can be obtained here: http://www.cmake.org/cmake/resources/software.html (min Release 2.6). Be sure to install the command line tools, when prompted during installation.
You can alternatively compile and install a local version of the CMake build tool by doing the following steps:
cd ~/local wget http://www.cmake.org/files/v2.8/cmake-2.8.6.tar.gz
tar xvzf cmake-2.8.6.tar.gz
cd cmake-2.8.6/ ./bootstrap --prefix=$HOME/local make make install
.bashrc
(for Bash): alias cmake='$HOME/local/bin/cmake'or (for Tcsh):
alias cmake '$HOME/local/bin/cmake'
A version of the Boost library is automatically checked out and available in the externals/
sub directory of your trunk (since Jan 2012), so a local installation is usually no longer necessary for building ug4. But if you need a special (e.g. newer) version, you can get one this way:
Download tar ball:
cd ~/local wget http://sourceforge.net/projects/boost/files/boost/1.48.0/boost_1_48_0.tar.gz
Unpack (no build necessary!) into a directory which has to be contained in your search path (see next step):
tar xzf boost_1_48_0.tar.gz
and add Boost root directory to search path (i.e., add a line like the following in your .profile
(for Bash):
export PATH=$PATH:$HOME/local/boost_1_48_0
or (for Tcsh):
set PATH = ($PATH $HOME/local/boost_1_48_0)
cmake -DINTERNAL_BOOST=OFF <further cmake parameters> ..
You can install a local version of the Lua interpreter by performing the following steps, so that you are able to execute Lua scripts "stand alone" (i.e. without utilising ug4's Lua capabilities):
cd ~/local wget http://www.lua.org/ftp/lua-5.1.4.tar.gz
tar xvzf lua-5.1.4.tar.gz
INSTALL
): cd lua-5.1.4/ make linux make local
.bashrc
(for Bash)): alias lua='$HOME/local/lua-5.1.4/bin/lua'or (for Tcsh):
alias lua '$HOME/local/lua-5.1.4/bin/lua'
lua my_scaling_analyzer.lua
You can install a local version of ParaView by performing the following steps (only described for installation of a "precompiled binary", which usually will be the preferred way):
mv ParaView-3.14.0-Linux-64bit.tar.gz ~/local
cd ~/local tar xvzf ParaView-3.14.0-Linux-64bit.tar.gz
ParaView-3.14.0-Linux-64bit/See the documentation (e.g. http://paraview.org/Wiki/The_ParaView_Tutorial) for how to build ParaView from sources (CMake and a compiler (of course) necessary — and a bit time).
.bashrc
(for Bash)): alias paraview='$HOME/local/ParaView-3.14.0-Linux-64bit/bin/paraview' alias pvserver='$HOME/local/ParaView-3.14.0-Linux-64bit/bin/pvserver'or (for Tcsh):
alias paraview '$HOME/local/ParaView-3.14.0-Linux-64bit/bin/paraview' alias pvserver '$HOME/local/ParaView-3.14.0-Linux-64bit/bin/pvserver'
paraview --data=<VTK-File>
.pvsm
): paraview --state=<state file>
For parallel rendering see e.g. Parallel Rendering.
cmake -DBUILTIN_BLAS=ON -DBUILTIN_LAPACK=ON
~/software/GotoBLAS2/
quickbuild.*
files there and execute it. ~/software/GotoBLAS2
to the environment variable LD_LIBRARY_PATH
by adding the line LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/software/GotoBLAS2/add the end of your
~/.bashrc
. source ~/.bashrc