diff --git a/scripts/setup-centos9.sh b/scripts/setup-centos9.sh index cb193c27c96d..d6b4a0942d02 100755 --- a/scripts/setup-centos9.sh +++ b/scripts/setup-centos9.sh @@ -206,7 +206,8 @@ function install_arrow { -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} \ -DCMAKE_BUILD_TYPE=Release \ -DARROW_BUILD_STATIC=ON \ - -DThrift_SOURCE=BUNDLED + -DThrift_SOURCE=BUNDLED \ + -DBOOST_ROOT=${INSTALL_PREFIX} ( # Install thrift. diff --git a/scripts/setup-ubuntu.sh b/scripts/setup-ubuntu.sh index 6ab4daae6b59..6e611b429f4d 100755 --- a/scripts/setup-ubuntu.sh +++ b/scripts/setup-ubuntu.sh @@ -214,7 +214,8 @@ function install_arrow { -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} \ -DCMAKE_BUILD_TYPE=Release \ -DARROW_BUILD_STATIC=ON \ - -DThrift_SOURCE=BUNDLED + -DThrift_SOURCE=BUNDLED \ + -DBOOST_ROOT=${INSTALL_PREFIX} ( # Install thrift.