<div id="install"> <span id="index-0"></span><span id="id1"></span> <ul> <li><p >dependencies</p> <blockquote> <div><ul > <li>python, 2.1-2.7, Python 3.0 not tested. If you intend to use ecFlow Python api, You will need to install python If python installed in non standard installation, you may need to customise $BOOST_ROOT/tools/build/v2/site-config.jam</li> <li>Xlib for <a href="/wiki/display/ECFLOW/Glossary#term-ecflowview"><em >ecFlowview</em></a></li> </ul> <p>ecfFlow consists of two tar files:</p> <ul > <li><tt ><span >boost_1_45_0.tar.gz</span></tt></li> <li><tt ><span >ecflow_1_9.tar.gz</span></tt></li> </ul> </div></blockquote> </li> <li><p >Create a directory for the build:</p> <div ><pre>> mkdir /tmp/ecflow_build</pre> </div> </li> <li><p >Copy the the two tar file into this directory, then change directory to <tt ><span >/tmp/ecflow_build</span></tt></p> </li> <li><p >Un-zip then un-tar the two file files:</p> <div ><div ><pre><span ># gunzip boost_1_45_0.tar.gz</span> <span ># gunzip ecflow_1_9.tar.gz</span> <span ># tar -xf boost_1_45_0.tar</span> <span ># tar -xf ecflow_1_9.tar</span> </pre></div> </div> </li> <li><p >You should have two directories created:</p> <div ><div ><pre><span >boost_1_45_0</span> <span >ecflow_1_9</span> </pre></div> </div> </li> <li><p >Create two environment variables. These are used by some of scripts:</p> <div ><pre>> export WK=/tmp/ecflow_build/ecflow_1_9 > export BOOST_ROOT=/tmp/ecflow_build/boost_1_45_0</pre> </div> </li> <li><p >Boost uses bjam for build. ecFlow use bjam for build and installation bjam source is available in boost, hence we first need to build bjam itself:</p> <div ><pre>> cd $BOOST_ROOT > ./bootstrap.sh</pre> </div> <p>Now make sure bjam is accessible from $PATH</p> </li> <li><p >Ecflow uses some of compiled libraries in boost. The following script will build the required lib’s, in both debug and release forms:</p> <div ><pre>> cd $BOOST_ROOT > $WK/build/build_boost.sh</pre> </div> </li> <li><p >We now need to build ecFlow:</p> <div ><pre>> cd $WK > bjam variant=release</pre> </div> <p>If you have a multi-core machine, you can speed up the build using: the -j<n> option. Where ‘n’ is an integer, of the number of cores.</p> <p>bjam variant=release -j4</p> </li> <li><p >Once ecFlow is built it can be installed. This requires the specification of two environment variables:</p> <div ><pre>ECFLOW_INSTALL_DIR # Directory Location for client ,server and gui program's ECFLOW_PYTHON_INSTALL_DIR # Directory location for ecFlow python extension Once these variable have been defined installation is done by calling:: bjam variant=release install</pre> </div> </li> <li><p >To use the <a href="/wiki/display/ECFLOW/ecFlow+Python+Api#python-api"><em>ecFlow Python Api</em></a>, you need to add/change PYTHONPATH and LD_LIBRARY_PATH:</p> <div ><pre>export PYTHONPATH=$PYTHONPATH:$ECFLOW_PYTHON_INSTALL_DIR export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ECFLOW_PYTHON_INSTALL_DIR</pre> </div> </li> </ul> </div> |