-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall_boost180.sh
executable file
·29 lines (22 loc) · 1.24 KB
/
install_boost180.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash -e
set -x #echo on
yum -y install bzip2-devel which valgrind-devel; yum -y clean all
cd ~
wget -nv --no-check-certificate https://boostorg.jfrog.io/artifactory/main/release/1.80.0/source/boost_1_80_0.tar.gz
tar xzf boost_1_80_0.tar.gz
cd boost_1_80_0
wget -nv --no-check-certificate https://www.boost.org/patches/1_80_0/0001-filesystem-win-fix-dir-it-net-share.patch
patch -p1 < 0001-filesystem-win-fix-dir-it-net-share.patch
wget -nv --no-check-certificate https://www.boost.org/patches/1_80_0/0002-filesystem-fix-weakly-canonical-long-paths.patch
patch -p1 < 0002-filesystem-fix-weakly-canonical-long-paths.patch
wget -nv --no-check-certificate https://www.boost.org/patches/1_80_0/0003-unordered-valid-after-move.patch
patch -p1 < 0003-unordered-valid-after-move.patch
wget -nv --no-check-certificate https://www.boost.org/patches/1_80_0/0004-filesystem-posix-fix-no-at-apis-missing-include.patch
patch -p1 < 0004-filesystem-posix-fix-no-at-apis-missing-include.patch
./bootstrap.sh --prefix=/usr/local/boost_1_80_0
./b2 --without-python -j$(nproc) install
./b2 boost.locale.icu=off --with-locale -j$(nproc) install
./bootstrap.sh --prefix=/usr/local/boost_1_80_0_valgrind
./b2 --without-python -j$(nproc) valgrind=on install
cd ~
rm -rf boost_*