How to install OpenTURNS on Debian 3.1 (Sarge)
This guide explains Debian Sarge installation of OpenTURNS.
Prepare your system
Some OpenTURNS dependencies need you to activate contrib repository. To do that, and if you can access root privileges, edit your /etc/apt/sources.list and add these lines :
deb http://ftp.debian.org/ sarge non-free deb-src http://ftp.debian.org/ sarge non-free
Don't forget to update your apt cache :
aptitude update
Unfortunately, if you can't be root on your host, you have to install the prerequisites as a traditional user without any specific privilege. So you must download every tarball to your home, compile each one in turn and have them installed into your favorite directory.
Configure
- Install building tools
aptitude install build-essential g77
- Install python
aptitude install python2.4
- Install XercesC, BOOST, Qt3
aptitude install libxerces26 libxerces26-dev libboost-dev libqt3-mt-dev
- Install mathematical tools (R, LAPACK)
aptitude install r-base lapack3-dev
- Install GS needed by R to draw some graphs
aptitude install gs-afpl
- Install python's development files (used to build TUI)
aptitude install python2.4-dev
- SWIG 1.3.31 version is required bellow OpenTURNS 0.9.2 but Debian Sarge have SWIG in 1.3.24 version. You need to build SWIG from source :
wget http://downloads.sourceforge.net/swig/swig-1.3.31.tar.gz tar xzvf swig-1.3.31.tar.gz cd swig-1.3.31 ./configure --prefix=/usr make && make install cd ..
- Download and extract OpenTURNS archive (i.e. openturns-0.9.1)
wget http://downloads.sourceforge.net/openturns/openturns-0.9.1.tar.gz tar xzf openturns-0.9.1.tar.gz cd openturns-0.9.1
- To allow OpenTURNS to communicate with R, you need to install the provided R package named rotRPackage :
R CMD INSTALL utils/rotRPackage_1.4.3.tar.gz
- Launch configuration script
./configure --prefix=/usr
Compilation and installation
- Launch compilation
make
- Launch optionals but recommended tests
aptitude install automake1.9 cp etc/configuration /etc/configuration make check
- Launch installation
make install
- Launch final verification
make installcheck
- Help python to find OpenTURNS's module
echo "openturns" > /usr/lib/python2.4/site-packages/openturns.pth
Try it !
You can check if OpenTURNS's TUI is working :
# python Python 2.4.4 (#2, Apr 5 2007, 18:43:10) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from openturns import * >>>
