How to install OpenTURNS' development version on Ubuntu/Kubuntu Feisty

This guide explains Ubuntu/Kubuntu Feisty installation of development version of OpenTURNS.

Prepare your system

Some OpenTURNS dependencies need you to activate 'universe' repository. To do that, edit your /etc/apt/sources.list and uncomment the lines :

Ubuntu/Kubuntu Feisty (7.04)

deb http://archive.ubuntu.com/ubuntu/ feisty universe
deb-src http://archive.ubuntu.com/ubuntu/ feisty universe

Configure

  • Install building tools
    aptitude install build-essential automake libtool
    
  • Launch bootstraping
    ./bootstrap
    
  • Install fortan compiler
    aptitude install g77
    
  • Install parsing tools
    aptitude install flex bison
    
  • Install XercesC, BOOST, Qt3
    aptitude install libxerces27-dev libboost-dev libqt3-mt-dev
    
  • Install python's development files and SWIG (used to build TUI)
    aptitude install python-dev swig
    
  • Install mathematical tools (R, LAPACK)
    aptitude install r-base lapack3-dev
    
  • Install rotRPackage
    cd utils
    tar xzf rotRPackage_1.4.3.tar.gz
    R CMD INSTALL rotRPackage
    cd ..
    
  • Launch configuration script
    ./configure --prefix=/usr
    

Compilation and installation

  • Launch compilation
    make
    
  • Launch installation
    make install
    
  • Help python to find OpenTURNS's module
    echo "openturns" > /usr/lib/python2.5/site-packages/openturns.pth
    

Try it !

You can check if OpenTURNS's TUI is working :

# python
Python 2.5.1 (r251:54863, May  2 2007, 16:27:44)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from openturns import *
>>>