diff --git a/scripts/setup-centos9.sh b/scripts/setup-centos9.sh index 2b38fd1d4c73..57daf19d98e8 100755 --- a/scripts/setup-centos9.sh +++ b/scripts/setup-centos9.sh @@ -194,7 +194,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 b95aabd37b69..3f3c41496800 100755 --- a/scripts/setup-ubuntu.sh +++ b/scripts/setup-ubuntu.sh @@ -202,7 +202,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.