From aad83a0e5a1257f6ba997cbd78dca358f749c714 Mon Sep 17 00:00:00 2001 From: Pietro Incardona <incardon@mpi-cbg.de> Date: Thu, 6 Aug 2015 19:38:32 +0200 Subject: [PATCH] Adding BOOST installation script --- configure.ac | 3 ++- install | 9 +++++++++ install_BOOST.sh | 16 ++++++++++++++++ 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100755 install_BOOST.sh diff --git a/configure.ac b/configure.ac index 5d3de3f29..b615ecf61 100755 --- a/configure.ac +++ b/configure.ac @@ -93,7 +93,8 @@ INCLUDES_PATH+="-I. -Isrc/config/ -I../../metis_install/include -I../../OpenFPM_ ##### CHECK FOR BOOST ############## -AX_BOOST([1.52],[],[]) +AX_BOOST([1.52],[],[echo "boost not found" + exit 202]) ####### Checking for GPU support diff --git a/install b/install index 97d2b17b8..9c5c96cfa 100755 --- a/install +++ b/install @@ -51,6 +51,15 @@ else ./install_Metis.sh METIS_installed=1 configure_options=" $configure_options --with-metis=${HOME}/METIS " + elif [ $conf_err -ne 0 ]; then + echo "Boost not found try to install" + if [ $Boost_installed -eq 1 ]; then + echo "Error the installation of Boost failed" + exit 1 + fi + ./install_boost.sh + BOOST_installed=1 + configure_options=" $configure_options --with-boost=${HOME}/BOOST " elif [ $conf_err -ne 0 ]; then echo "I do not know how to recover from this error" exit 1 diff --git a/install_BOOST.sh b/install_BOOST.sh new file mode 100755 index 000000000..7c2964172 --- /dev/null +++ b/install_BOOST.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# check if the directory ${HOME}/MPI exist + +if [ -d "${HOME}/BOOST" ]; then + echo "BOOST already installed" + exit 0 +fi + +mkdir ${HOME}/BOOST +wget http://ppmcore.mpi-cbg.de/upload/boost_1_58_0.tar.bz2 +tar -xvf boost_1_58_0.tar.bz2 +cd boost_1_58_0 +./bootstrap.sh +./b2 install --prefix=$HOME/BOOST + -- GitLab