Skip to content

Commit

Permalink
[native] Allow options to wget curl cmake during setup
Browse files Browse the repository at this point in the history
  • Loading branch information
anandamideShakyan committed Feb 2, 2025
1 parent e223cc1 commit 6e978a3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions presto-native-execution/scripts/setup-centos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ export nproc=$(getconf _NPROCESSORS_ONLN)
export CC=/opt/rh/gcc-toolset-12/root/bin/gcc
export CXX=/opt/rh/gcc-toolset-12/root/bin/g++

WGET_OPTIONS=${WGET_OPTIONS:-""}
TAR_OPTIONS=${TAR_OPTIONS:-"-v"}

CPU_TARGET="${CPU_TARGET:-avx}"
SCRIPT_DIR=$(readlink -f "$(dirname "${BASH_SOURCE[0]}")")
if [ -f "${SCRIPT_DIR}/setup-centos9.sh" ]
Expand All @@ -34,8 +37,8 @@ function install_presto_deps_from_package_managers {
}

function install_gperf {
wget http://ftp.gnu.org/pub/gnu/gperf/gperf-3.1.tar.gz &&
tar xvfz gperf-3.1.tar.gz &&
wget ${WGET_OPTIONS} http://ftp.gnu.org/pub/gnu/gperf/gperf-3.1.tar.gz &&
tar ${TAR_OPTIONS} -xzf gperf-3.1.tar.gz &&
cd gperf-3.1 &&
./configure --prefix=/usr/local/gperf/3_1 &&
make "-j$(nproc)" &&
Expand Down

0 comments on commit 6e978a3

Please sign in to comment.