Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions scripts/install_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ scl enable "${DEVTOOLSET}" bash || error "[scl] Failed to enable ${DEVTOOLSET}"
# Alternative mirror to use if the official mirror is down
# BOOST_MIRROR=https://mirror.bazel.build/boostorg.jfrog.io/artifactory/main/release/"${BOOST_VERSION}"/source/"${BOOST_LIB}".tar.gz
# sourceforge
BOOST_MIRROR=https://sourceforge.net/projects/boost/files/boost/"${BOOST_VERSION}"/"${BOOST_LIB}".tar.gz
# BOOST_MIRROR=https://sourceforge.net/projects/boost/files/boost/"${BOOST_VERSION}"/"${BOOST_LIB}".tar.gz
# github
BOOST_LIB=boost-"${BOOST_VERSION}"
BOOST_MIRROR=https://github.com/boostorg/boost/releases/download/boost-"${BOOST_VERSION}"/"${BOOST_LIB}".tar.gz

wget "${BOOST_MIRROR}" || error "[boost] ${BOOST_LIB}.tar.gz download failed"
export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/usr/local/lib64:/usr/lib64:"$LD_LIBRARY_PATH"
tar -xzf "${BOOST_LIB}".tar.gz || error "[boost] ${BOOST_LIB}.tar.gz extraction failed"
Expand All @@ -65,7 +69,7 @@ scl enable "${DEVTOOLSET}" bash || error "[scl] Failed to enable ${DEVTOOLSET}"
./b2 -j4 cxxflags="-fPIC" runtime-link=static variant=release link=static --prefix=/opt/boost_"${BOOST_VERSION}" install \
|| error "[boost] Installation failed"
)

# install miniconda
MINICONDA3_SCRIPT="Miniconda3-${MINICONDA3_VERSION}-Linux-x86_64.sh"
MINICONDA_URL="https://repo.continuum.io/miniconda/${MINICONDA3_SCRIPT}"
Expand Down
Loading