Skip to content

Commit

Permalink
ARROW-14710: [R] Install error on Linux arm64 with cmake-X.X.X-Linux-…
Browse files Browse the repository at this point in the history
…x86_64

Closes #11703 from thisisnic/ARROW-14710_arm_cmake

Authored-by: Nic Crane <[email protected]>
Signed-off-by: Nic Crane <[email protected]>
  • Loading branch information
thisisnic committed Nov 16, 2021
1 parent 690e364 commit d618498
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions r/tools/nixlibs.R
Original file line number Diff line number Diff line change
Expand Up @@ -371,11 +371,18 @@ ensure_cmake <- function() {
if (is.null(cmake)) {
# If not found, download it
cat("**** cmake\n")
CMAKE_VERSION <- Sys.getenv("CMAKE_VERSION", "3.19.2")
CMAKE_VERSION <- Sys.getenv("CMAKE_VERSION", "3.21.4")
if (tolower(Sys.info()[["sysname"]]) %in% "darwin") {
postfix <- "-macos-universal.tar.gz"
} else if (tolower(Sys.info()[["machine"]]) == "arm64") {
postfix <- "-linux-aarch64.tar.gz"
} else if (tolower(Sys.info()[["machine"]]) == "x86_64") {
postfix <- "-linux-x86_64.tar.gz"
} else {
postfix <- "-Linux-x86_64.tar.gz"
stop(paste0(
"*** cmake was not found locally.\n",
" Please make sure cmake >= 3.10 is installed and available on your PATH.\n"
))
}
cmake_binary_url <- paste0(
"https://github.com/Kitware/CMake/releases/download/v", CMAKE_VERSION,
Expand Down

0 comments on commit d618498

Please sign in to comment.