Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

http://www.boost.org/

Boost provides free peer-reviewed portable C++ source libraries.

location: /sw/library/boost/1.4.8

Usage

module load boost/ser/1.4.8
OR
module load boost/mpi/1.4.8

Installation

Make sure you have the Python headers (i.e. development information) installed (if rpm, check for python-devel rpm. If built from source , it should be there)

boot serial version

module load python/2.7.1

Download latest source files and extract...
cd /sw/library/boost/1.4.8/src/
tar -zxvf boost_1_48_0.tar.gz
cd /sw/library/boost/1.4.8/src/boost_1_48_0
./bootstrap.sh --prefix=/sw/library/boost/1.4.8/ser --libdir=/sw/library/boost/1.4.8/ser/lib 2>&1 tee configure.txt

./b2 install

Building Boost.Build engine with toolset gcc... tools/build/v2/engine/bin.linuxx86_64/b2
Detecting Python version... 2.7
Detecting Python root... /sw/python/2.7.1
Unicode/ICU support for Boost.Regex?... not found.
Generating Boost.Build configuration in project-config.jam...

Bootstrapping is done. To build, run:

    ./b2

To adjust configuration, edit 'project-config.jam'.
Further information:

   - Command line help:
     ./b2 --help

   - Getting started guide:
     http://www.boost.org/more/getting_started/unix-variants.html

   - Boost.Build documentation:
     http://www.boost.org/boost-build2/doc/html/index.html


boot mpi version

module load python/2.7.1
module load mpi/openMPI/1.4.3-gnu
cd /sw/library/boost/1.4.8/src/boost_1_48_0
vi tools/build/v2/user-config.jam
Add "using mpi ;" to enable MPI support
./bootstrap.sh --prefix=/sw/library/boost/1.4.8/openmpi --libdir=/sw/library/boost/1.4.8/openmpi/lib 2>&1 tee configure.txt

./b2 install

module file

module load boost/ser/1.4.8
OR
module load boost/mpi/1.4.8

 module display boost/ser/1.4.8
-------------------------------------------------------------------
/sw/com/modulefiles/boost/ser/1.4.8:

module           load python/2.7.1
prepend-path     INCLUDE /sw/library/boost/1.4.8/ser/include/boost
prepend-path     LD_LIBRARY_PATH /sw/library/boost/1.4.8/ser/lib
-------------------------------------------------------------------

OR

module display boost/mpi/1.4.8
-------------------------------------------------------------------
/sw/com/modulefiles/boost/mpi/1.4.8:

module           load python/2.7.1
module           load mpi/openMPI/1.4.3-gnu
prepend-path     INCLUDE /sw/library/boost/1.4.8/mpi/include/boost
prepend-path     LD_LIBRARY_PATH /sw/library/boost/1.4.8/mpi/lib
-------------------------------------------------------------------


Dependencies

Required for software "Desmond"

Reference

1. http://wiki.tiker.net/BoostInstallationHowto

  • No labels