diff --git a/scripts/setup-centos7.sh b/scripts/setup-centos7.sh index 39a453de4a53c..313bd00440182 100755 --- a/scripts/setup-centos7.sh +++ b/scripts/setup-centos7.sh @@ -213,6 +213,17 @@ function install_fmt { cmake_install fmt -DFMT_TEST=OFF } +function install_duckdb { + if $BUILD_DUCKDB ; then + echo 'Building DuckDB' + wget_and_untar https://github.com/duckdb/duckdb/archive/refs/tags/v0.8.1.tar.gz duckdb + ( + cd duckdb + cmake_install -DBUILD_UNITTESTS=OFF -DENABLE_SANITIZER=OFF -DENABLE_UBSAN=OFF -DBUILD_SHELL=OFF -DEXPORT_DLL_SYMBOLS=OFF -DCMAKE_BUILD_TYPE=Release + ) + fi +} + function install_prerequisites { run_and_time install_lzo run_and_time install_boost @@ -229,6 +240,7 @@ function install_velox_deps { run_and_time install_fmt run_and_time install_folly run_and_time install_conda + run_and_time install_duckdb } $SUDO dnf makecache