diff --git a/scripts/setup-centos9.sh b/scripts/setup-centos9.sh index 556cc5dab182..93bcf1305dbb 100755 --- a/scripts/setup-centos9.sh +++ b/scripts/setup-centos9.sh @@ -211,7 +211,7 @@ function install_arrow { # Install thrift. cd _build/thrift_ep-prefix/src/thrift_ep-build - cmake --install ./ --prefix /usr/local/ + $SUDO cmake --install ./ --prefix /usr/local/ } function install_cuda { diff --git a/scripts/setup-ubuntu.sh b/scripts/setup-ubuntu.sh index adbdefa85426..1876ca02780c 100755 --- a/scripts/setup-ubuntu.sh +++ b/scripts/setup-ubuntu.sh @@ -180,7 +180,7 @@ function install_arrow { # Install thrift. cd _build/thrift_ep-prefix/src/thrift_ep-build - cmake --install ./ --prefix /usr/local/ + $SUDO cmake --install ./ --prefix /usr/local/ } function install_cuda {