From 5d97c392cfb684522353710e33a683db53bb5c0b Mon Sep 17 00:00:00 2001 From: PHILO-HE Date: Thu, 10 Oct 2024 17:13:23 +0800 Subject: [PATCH] Initial --- scripts/setup-centos9.sh | 2 +- scripts/setup-ubuntu.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/scripts/setup-centos9.sh b/scripts/setup-centos9.sh index d6b4a0942d02..bc6929dda1ba 100755 --- a/scripts/setup-centos9.sh +++ b/scripts/setup-centos9.sh @@ -138,7 +138,7 @@ function install_protobuf { wget_and_untar https://github.com/protocolbuffers/protobuf/releases/download/v21.8/protobuf-all-21.8.tar.gz protobuf ( cd ${DEPENDENCY_DIR}/protobuf - ./configure --prefix=${INSTALL_PREFIX} + ./configure CXXFLAGS="-fPIC" --prefix=${INSTALL_PREFIX} make "-j${NPROC}" make install ldconfig diff --git a/scripts/setup-ubuntu.sh b/scripts/setup-ubuntu.sh index 6e611b429f4d..7a8899b3db9c 100755 --- a/scripts/setup-ubuntu.sh +++ b/scripts/setup-ubuntu.sh @@ -135,6 +135,17 @@ function install_boost { ) } +function install_protobuf { + wget_and_untar https://github.com/protocolbuffers/protobuf/releases/download/v21.8/protobuf-all-21.8.tar.gz protobuf + ( + cd ${DEPENDENCY_DIR}/protobuf + ./configure CXXFLAGS="-fPIC" --prefix=${INSTALL_PREFIX} + make "-j${NPROC}" + make install + ldconfig + ) +} + function install_folly { wget_and_untar https://github.com/facebook/folly/archive/refs/tags/${FB_OS_VERSION}.tar.gz folly cmake_install_dir folly -DBUILD_TESTS=OFF -DFOLLY_HAVE_INT128_T=ON @@ -238,6 +249,7 @@ function install_cuda { function install_velox_deps { run_and_time install_velox_deps_from_apt run_and_time install_fmt + run_and_time install_protobuf run_and_time install_boost run_and_time install_folly run_and_time install_fizz