Changes between Version 40 and Version 41 of Installation

Show
Ignore:
Timestamp:
07/12/13 16:30:16 (12 years ago)
Author:
jorisborgdorff
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Installation

    v40 v41  
    6363When the dependencies are in place, you are ready to build and install MUSCLE.  Download the muscle bundle from [[http://apps.man.poznan.pl/trac/muscle/downloads|Downloads section]], or from the command-line. Then unzip the folder, go to the build directory inside and run the {{{build.sh}}} command. 
    6464{{{ 
    65 curl -#O http://apps.man.poznan.pl/trac/muscle/downloads/MUSCLE-2.0.0rc2-sources.zip 
    66 unzip MUSCLE-2.0.0rc2-sources.zip 
    67 cd MUSCLE-2.0.0rc2-sources/build 
     65curl -#O http://apps.man.poznan.pl/trac/muscle/downloads/MUSCLE-2.0.1-sources.zip 
     66unzip MUSCLE-2.0.1-sources.zip 
     67cd MUSCLE-2.0.1/build 
    6868 
    6969sudo ./build.sh 
     
    7272This installs MUSCLE in /opt/muscle. For another location, add this as the first argument to {{{build.sh}}}. 
    7373 
    74 The command  
     74The command 
    7575{{{ 
    7676source /opt/muscle/etc/muscle.profile 
     
    8181{{{ 
    8282muscle2 --version 
     83}}} 
     84 
     85== Advanced building options == 
     86 
     87Although the {{{build.sh}}} script should be sufficient in more cases, sometimes it can not 
     88detect where certain libraries are located. This is often true for the MPI example and for 
     89compiling the MTO with Boost. 
     90The build settings can be modified by setting the following environment variables: 
     91 
     92||= Variable ||= Setting ||= Example || 
     93|| BOOST_INCLUDEDIR || Location of Boost headers || {{{/opt/boost/include}}} || 
     94|| BOOST_LIBRARYDIR || Location of Boost libraries || {{{/opt/boost/lib}}} |||| MPI_C_COMPILER || Compiler used for the C MPI example || {{{/usr/bin/mpicc}}} || 
     95|| MPI_C_FLAGS || Flags to give the C MPI compiler || {{{-O3 -Wall}}} || 
     96|| MPI_C_INCLUDE_PATH || Location of include files for C MPI || {{{/usr/include}}} || 
     97|| MPI_C_LIBRARIES || All libraries needed to link with for C MPI (semicolon separated) || {{{/usr/lib/libmpi.so;/usr/lib/libm.so}}} || 
     98 
     99Possible build options can be evaluated by going to the build directory and running 
     100{{{ 
     101cmake -L .. 
     102}}} 
     103 
     104Even more detailed build options are found with 
     105{{{ 
     106cmake -LA .. 
     107}}} 
     108 
     109These options can be passed to cmake by setting the environment variable 
     110{{{ 
     111export MUSCLE_CMAKE_OPTIONS="-DOPTION=VALUE -DOPTION2=VALUE2" 
     112}}} 
     113For example, to build the python extension: 
     114{{{ 
     115export MUSCLE_CMAKE_OPTIONS="-DBUILD_PYTHON=ON" 
     116sudo ./build.sh 
     117}}} 
     118And if the libraries can not be found 
     119{{{ 
     120export MUSCLE_CMAKE_OPTIONS="-DBUILD_PYTHON=ON -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so" 
     121sudo ./build.sh 
    83122}}} 
    84123== Further reading ==