Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Python 2.7  ( Python 3.0 not tested )

    If you intend to use ecFlow Python API, You will need to install Python.

    Please  Please ensure that python is accessible on $PATH otherwise, you may need to customise $BOOST_ROOT/tools/build/v2/site-config.jam . 

    The python installation should include the development packages

    If you do not need the python api, then you can build without it, see below.

  • Xlib, X11, XMotif for ecflowview .

    Do not use Lesstif library to compile ecflowview as a replacement for Motif. 

    OpenMotif can be downloaded from http://www.ist.co.uk/downloads/motif_download.html

    cmake (optional, alternative build system, see http://www.linuxfromscratch.org/blfs/view/svn/general/cmake.html)

    If you do not want use the GUI, then you can configure the build to ignore this dependency.

Setting up the build environment

  • ecfFlow consists of two tar files i.e. :

    boost_1_53_0.tar.gz

    ecFlow-4.0.8-Source.tar.gz

    Create a directory for the build:

    Code Block
    languagebash
    mkdir /tmp/ecflow_build
  • Copy the the two tar file into this directory, then change directory to /tmp/ecflow_build

  • Un-zip then un-tar the two file files:

    Code Block
    languagebash
    gunzip boost_1_53_0.tar.gz
    gunzip ecFlow-4.0.8-Source.tar.gz
    tar -xf boost_1_53_0.tar
    tar -xf ecFlow-4.0.8-Source.tar
  • You should have three two directories created:

    Code Block
    boost_1_53_0
    ecFlow-4.0.8-Source
    
  • Create two environment variables. These are used by some of scripts:

     

    Code Block
    languagebash
    export WK=/tmp/ecflow_build/ecFlow-4.0.8-Source
    export BOOST_ROOT=/tmp/ecflow_build/boost_1_53_0

...

It is recommended to try cmake/ecbuild first.

cmake

...

 
Code Block
languagebash
titlecmake/ecbuild
cd $WK
mkdir build; cd build;

# Specify the directory where you want ecflow installed, we have useused '/usr/local/apps/ecflow' as an example
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/apps/ecflow -DCMAKE_BUILD_TYPE=Release

# If you do not want build the GUI, use:
# cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/apps/ecflow -DCMAKE_BUILD_TYPE=Release -DENABLE_GUI=OFF

# If you do not need the python api, use:
# cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/apps/ecflow -DCMAKE_BUILD_TYPE=Release -DENABLE_PYTHON=OFF

make
make install

...

 

Code Block
languagebash
export PYTHONPATH=$PYTHONPATH:/usr/local/apps/ecflow/4.0.78/lib/python2.7/site-packages/ecflow

 

...