How to install OpenTURNS on Ubuntu/Kubuntu

This guide explains Ubuntu/Kubuntu Edgy installation 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 Dapper LTS (6.04)

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

Ubuntu/Kubuntu Edgy (6.10)

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

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
    
  • Install fortan compiler
    aptitude install g77
    
  • Install mathematical tools (R, LAPACK)
    aptitude install r-base lapack3-dev
    
  • Install XercesC, BOOST, Qt3
    aptitude install libxerces27-dev libboost-dev libqt3-mt-dev
    
  • 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.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 *
>>>