Install boost library

Following the instructions of http://fenics-hpc.blogspot.hu/2015/04/build-fenics-150-on-archer.html.

Assuming that there are 3 directories: packages, modules, src.

Download boost

cd src
wget -c 'http://sourceforge.net/projects/boost/files/boost/1.57.0/boost_1_59_0.tar.gz/download
tar xf boost_1_59_0.tar.gz

Create folders

cd packages
mkdir boost-1.59.0
cd boost-1.59.0
mkdir lib
mkdir include

Install

cd src/boost_1_59_0
./bootstrap.sh

Then edit project-config.jam as it is said on fenics-hpc.blogspot, but with the appropriate gcc version (4.4.7) and with the appropriate paths.

# Boost.Build Configuration
# Automatically generated by bootstrap.sh

import option ;
import feature ;

# Compiler configuration. This definition will be used unless
# you already have defined some toolsets in your user-config.jam
# file.
if ! gcc in [ feature.values ]
{
using gcc : 5.3.0 : : -std=c++11 ;
}

project : default-build gcc ;

# List of –with- and –without- # options. If left empty, all libraries will be built.
# Options specified on the command line completely
# override this variable.
libraries = –with-filesystem –with-program_options –with-timer –with-chrono –with-system –with-thread –with-iostreams –with-serialization ;

# These settings are equivivalent to corresponding command-line
# options.
option.set prefix : /home/1/nonlinpde/packages/boost-1.59.0 ;
option.set exec-prefix : /home/1/nonlinpde/packages/boost-1.59.0 ;
option.set libdir : /home/1/nonlinpde/packages/boost-1.59.0/lib ;
option.set includedir : /home/1/nonlinpde/packages/boost-1.59.0/include ;

# Stop on first error
option.set keep-going : false ;

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s