How to install a development version on Fedora

Install packages

  • Login with super cow powers
  • Install development tools (gcc, bison, flex, swig, subversion ...)
    yum groupinstall "Development Tools"
    
  • Install some libraries
    yum install libxml2-devel PyQt-devel R lapack-devel
    

Retrieve sources

svn checkout https://svn.openturns.org/openturns/tags/openturns-0.13.2 openturns
cd openturns

Build

  • Install provided rotR package
    R CMD INSTALL utils/rotRPackage_1.4.4.tar.gz
    
  • Launch bootstraping
    ./bootstrap
    
  • Create a build directory
    mkdir build
    cd build
    
  • Launch configuration script
    ../configure --with-swig --prefix=$PWD/install
    
  • Launch compilation
    make
    
  • Launch installation
    make install pythondir=$PWD`python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))" | sed 's/usr/install/g'`
    

Try it

export PYTHONPATH=$PWD`python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))" | sed 's/usr/install/g'`
python
Python 2.6.2 (r262:71600, Aug 21 2009, 12:23:57) 
[GCC 4.4.1 20090818 (Red Hat 4.4.1-6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from openturns import *
Welcome to OpenTURNS version 0.13.2-based-devel
>>> u=Normal()
>>> u.getRealization()
class=NumericalPoint name=Unnamed dimension=1 values=[0.608202]
>>>