After spending quite some time to install openturns on my fedora box, I feel I should post about it to spare the time of other people. The install page advertises for a forthcoming support for RPM packages available soon (we all know the real definition of soon don't we : it means "we don't need it for ourselves, so if you want it, do it", which is fair enough).

If I had more time, I would learn how to make rpms, and provide one for openturns, but this does not seem necessary for now as openturns installs fine from source, at least if you go round a few things. This post is absolutely not a replacement for the real install notes but maybe guidelines on how to read these notes from a fedora perspective.


Grab the tar.gz from sourceforge and unzip it somewhere.


This is what the install notes say :

Till 0.12.1 included:

* GCC C, C++ and Fortran compilers (>= 3.3.5 except 4.0.x series, tested with 3.4.5, 3.4.6, 4.1.1, 4.1.2 & 4.2.2) * Python interpreter (>= 2.4.x) * R statistical language (>= 2.0) * Xerces-C XML parser (>= 2.6.0, tested with 2.7.0) * BOOST C++ library (>= 1.33.1) * LAPACK Linear Algebra library (>= 3.0) * Qt (3.3.x) * python-qt if you want to use the embedded image viewer ViewImage (TUI only)

Since 0.12.2:

* GCC C, C++ and Fortran compilers (>= 3.3.5 except 4.0.x series, tested with 3.3.5, 3.3.6, 3.4.5, 3.4.6, 4.1.1, 4.1.2, 4.2.2 & 4.3.1) * Python interpreter (>= 2.4.x) * R statistical language (>= 2.0) * Libxml2 XML library (>= 2.6.27) * LAPACK Linear Algebra library (>= 3.0) * python-qt if you want to use the embedded image viewer ViewImage (TUI only)

Here is what I have done on my fedora machine: python and gcc are already installed unless you really want them not to be, so nothing to do here, R is easy to compile from source, but you can get it with yum as well (yum install R)

For the other software, here is my list of yum calls :

# yum install -y xerces-c-devel
# yum install -y boost-devel
# yum install -y lapack-devel
# yum install -y qt3-devel
# yum install -y PyQt-devel
# yum install -y libxml2-devel

I also installed rpy and graphviz to have optional features as well:

# yum install -y rpy
# yum install -y graphviz-devel

After that, the ./configure call should be ok. Here is the summary I got which sounds good enough.

R Packages

Now you can install the R package rotRPackage which comes with openturns as described in the install page

# R CMD INSTALL utils/rotRPackage_1.4.4.tar.gz

You also need the sensitivity package, but at the time of writing the sensitivity package changed some of its API and openturns did not propagate, so you have to install version 1.3-1 as opposed to the current version.

The other problem I ran into was that I am using a custom ~/.Rprofile file which contains startup instructions such as requireing R packages, this caused the test cases of openturns to fail because the expected output was mixed with the standard error stream (which is where require writes its messages). So at least for running openturns tests, I have modified my .Rprofile file so that it does not load packages or write anything to the standard error stream.

Installing openturns

When this is ready, you can do :

$ make   # good opportunity to make some coffee while it compiles 
$ make check # everything should be ok
# make install
$ make installcheck # should be ok too

Loading the python module

Reading the FAQ is a good way to save yourself some time, specifically when trying to load the openturns python module. I have added these two lines to my .bash_profile file :


Then, you can start python and start using openturns, which is another story ...

$ python
Python 2.5.2 (r252:60911, Sep 30 2008, 15:41:38)
[GCC 4.3.2 20080917 (Red Hat 4.3.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from openturns import *