From 7f84d4e8002394bb7fe7dd513166fb7e95319821 Mon Sep 17 00:00:00 2001 From: Christian Zentgraf Date: Fri, 20 Sep 2024 17:15:58 -0400 Subject: [PATCH] Fix arrow install with custom INSTALL_PREFIX If the recently added INSTALL_PREFIX does not point to /usr/local in Linux then the bundled Thrift installation from the Arrow dependency fails because it cannot locate Boost. Boost was previously installed into the INSTALL_PREFIX but the Thrift CMake in Arrow does not pass on any PREFIX_PATH settings to Thrift. The PREFIX_PATH is set to the INSTALL_PREFIX and works with Arrow itself just fine. The error would be Could NOT find Boost (missing: Boost_INCLUDE_DIR) (Required is at least version "1.56") Co-authored-by: Majeti Deepak --- scripts/setup-centos9.sh | 3 ++- scripts/setup-ubuntu.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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.