diff --git a/scripts/setup-centos9.sh b/scripts/setup-centos9.sh index 2914be251f58..9ecce61e88e5 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 5ecf27235652..4f891392f5bd 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.