Changeset 11834


Ignore:
Timestamp:
03/30/12 21:23:57 (13 years ago)
Author:
Eric.Larour
Message:

Two step install + 1.49 version of boost, which is not bugged

Location:
issm/trunk-jpl/externalpackages/boost
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/boost/install.sh

    r11101 r11834  
    11#!/bin/bash
    22
    3 #Some cleanup
    4 rm -rf install boost_1_45_0 src
    5 mkdir install src
     3step=2
     4#1: download
     5#2: install
    66
    7 #Untar
    8 tar -zxvf  boost_1_45_0.tar.gz
     7if [[ $step == "1" ]];then
     8        #Some cleanup
     9        rm -rf install boost_1_49_0 src
     10        mkdir install src
    911
    10 #Move boost into install directory
    11 mv boost_1_45_0/* src
    12 rm -rf boost_1_45_0
     12        #Untar
     13        tar -zxvf  boost_1_49_0.tar.gz
    1314
    14 #Configure and compile
    15 cd src
    16 ./bootstrap.sh --prefix=$ISSM_TIER/externalpackages/boost/install
     15        #Move boost into install directory
     16        mv boost_1_49_0/* src
     17        rm -rf boost_1_49_0
     18fi
    1719
    18 #Compile boost
    19 if [ -z $1 ];
    20 then
    21         ./bjam install
    22 else
    23         ./bjam -j $1 install
     20if [[ $step == "2" ]];then
     21        #Configure and compile
     22        cd src
     23        ./bootstrap.sh --prefix=$ISSM_TIER/externalpackages/boost/install --with-python=python3.2 --with-python-root="$ISSM_TIER/externalpackages/python/install"
     24
     25        #Compile boost
     26        if [ -z $1 ];
     27        then
     28                ./bjam install
     29        else
     30                ./bjam -jx $1 install
     31        fi
     32
     33        #put bjam into install also:
     34        mkdir ../install/bin
     35        cp bjam ../install/bin
     36
    2437fi
Note: See TracChangeset for help on using the changeset viewer.