Skip to content

Commit 5b0d4d6

Browse files
authored
Improve boost library download (#224 | GRIDEDIT-1892)
1 parent 0c6e466 commit 5b0d4d6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/install_deps.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ scl enable "${DEVTOOLSET}" bash || error "[scl] Failed to enable ${DEVTOOLSET}"
5555
# Alternative mirror to use if the official mirror is down
5656
# BOOST_MIRROR=https://mirror.bazel.build/boostorg.jfrog.io/artifactory/main/release/"${BOOST_VERSION}"/source/"${BOOST_LIB}".tar.gz
5757
# sourceforge
58-
BOOST_MIRROR=https://sourceforge.net/projects/boost/files/boost/"${BOOST_VERSION}"/"${BOOST_LIB}".tar.gz
58+
# BOOST_MIRROR=https://sourceforge.net/projects/boost/files/boost/"${BOOST_VERSION}"/"${BOOST_LIB}".tar.gz
59+
# github
60+
BOOST_LIB=boost-"${BOOST_VERSION}"
61+
BOOST_MIRROR=https://github.com/boostorg/boost/releases/download/boost-"${BOOST_VERSION}"/"${BOOST_LIB}".tar.gz
62+
5963
wget "${BOOST_MIRROR}" || error "[boost] ${BOOST_LIB}.tar.gz download failed"
6064
export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/usr/local/lib64:/usr/lib64:"$LD_LIBRARY_PATH"
6165
tar -xzf "${BOOST_LIB}".tar.gz || error "[boost] ${BOOST_LIB}.tar.gz extraction failed"
@@ -65,7 +69,7 @@ scl enable "${DEVTOOLSET}" bash || error "[scl] Failed to enable ${DEVTOOLSET}"
6569
./b2 -j4 cxxflags="-fPIC" runtime-link=static variant=release link=static --prefix=/opt/boost_"${BOOST_VERSION}" install \
6670
|| error "[boost] Installation failed"
6771
)
68-
72+
6973
# install miniconda
7074
MINICONDA3_SCRIPT="Miniconda3-${MINICONDA3_VERSION}-Linux-x86_64.sh"
7175
MINICONDA_URL="https://repo.continuum.io/miniconda/${MINICONDA3_SCRIPT}"

0 commit comments

Comments
 (0)