source: issm/trunk/externalpackages/boost/install.sh@ 18301

Last change on this file since 18301 was 18301, checked in by Mathieu Morlighem, 11 years ago

merged trunk-jpl and trunk for revision 18299

  • Property svn:executable set to *
File size: 1.0 KB
Line 
1#!/bin/bash
2set -eu
3
4#Note of caution: stop after boostrap phase, and run
5#bjam --debug-configuration, to figure out which paths boost is using to include
6#python. make sure everyone of these paths is covered by python. If not, just make
7#symlinks in externalpackages/python to what boost is expecting. Ther is NO WAY
8#to get the boost library to include python support without doing that.
9
10#Some cleanup
11rm -rf install boost_1_49_0 src
12mkdir install src
13
14#Download from ISSM server
15$ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/boost_1_49_0.tar.gz' 'boost_1_49_0.tar.gz'
16
17#Untar
18tar -zxvf boost_1_49_0.tar.gz
19
20#Move boost into install directory
21mv boost_1_49_0/* src
22rm -rf boost_1_49_0
23#Configure and compile
24cd src
25./bootstrap.sh \
26 --prefix="$ISSM_DIR/externalpackages/boost/install" \
27 --with-python=python3.2 \
28 --with-python-root="$ISSM_DIR/externalpackages/python/install"
29
30#Compile boost
31./bjam install
32
33#put bjam into install also:
34mkdir ../install/bin
35cp bjam ../install/bin
Note: See TracBrowser for help on using the repository browser.