Version 3 (modified by schueller@…, 6 months ago)

--

How to install a development version on Fedora 12

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
    
  • Install mathematical tools (R, LAPACK)
    yum install R lapack-devel
    
  • Install rotRPackage
    R CMD INSTALL utils/rotRPackage_1.4.4.tar.gz
    

Retrieve sources

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

Build

  • 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
    
  • Fix install (1)
    cp $PWD/install/lib/python2.6/site-packages/* $PWD/install/lib64/python2.6/site-packages
    

Try it

export PYTHONPATH="$PWD/install/lib64/python2.6/site-packages"
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]
>>> 

(1) Note : In the python module, .py files are installed to $PWD/install/lib/python2.6/site-packages whereas .so files are installed to $PWD/install/lib64/python2.6/site-packages (or /lib32 on i386 I suppose)