[R] Installing arrow R package on Linux with install-arrow.R fails
- Dominant language
- C++
- Stars
- 17.1k
- Forks
- 4.3k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 88
Description
### Describe the bug, including details regarding any error messages, version, and platform.
I am trying to install the arrow R package on Linux by running the following script (as suggested [here](https://arrow.apache.org/docs/r/articles/install.html#offline-installation)):
```r
source("https://raw.githubusercontent.com/apache/arrow/main/r/R/install-arrow.R")
create_package_with_all_dependencies("my_arrow_pkg.tar.gz")
install.packages(
"my_arrow_pkg.tar.gz",
dependencies = c("Depends", "Imports", "LinkingTo")
)
```
It fails with the following message:
```
Error: Error installing package 'arrow':
=================================
* installing *source* package ‘arrow’ ...
** package ‘arrow’ successfully unpacked and MD5 sums checked
** using staged installation
*** pkg-config found.
*** Found local C++ source: 'tools/cpp'
*** Building libarrow from source
For build options and troubleshooting, see the install guide:
https://arrow.apache.org/docs/r/articles/install.html
**** cmake 3.31.1: /usr/bin/cmake
tools/download_dependencies_R.sh: line 59: source: /tmp/RtmpQzm78H/renv-package-new-23c906aa6b4b/arrow/tools: is a directory
Error in get_component_names() : Failed to run download_dependencies_R.sh
Calls: build_libarrow -> set_thirdparty_urls -> get_component_names
Execution halted
------------------------- NOTE ---------------------------
There was an issue building the Arrow C++ libraries.
See https://arrow.apache.org/docs/r/articles/install.html
---------------------------------------------------------
ERROR: configuration failed for package ‘arrow’
* removing ‘/home/andrews/tmp/inst_arrow/renv/staging/1/arrow’
install of package 'arrow' failed [error code 1]
Traceback (most recent calls last):
15: install.packages("my_arrow_pkg.tar.gz", dependencies = c("Depends",
"Imports", "LinkingTo"))
14: eval(call, envir = parent.frame())
13: eval(call, envir = parent.frame())
12: renv::install("my_arrow_pkg.tar.gz", dependencies = c("Depends",
"Imports", "LinkingTo"))
11: renv_install_impl(records)
10: renv_install_staged(records)
9: renv_install_default(records)
8: handler(package, renv_install_package(record))
7: renv_install_package(record)
6: withCallingHandlers(renv_install_package_impl(record), error = function(e) writef("FAILED"))
5: renv_install_package_impl(record)
4: r_cmd_install(package, path)
3: r_exec_error(package, output, "install", status)
2: abort(all)
1: stop(fallback)
Execution halted
```
I can't understand what the problem is because I ran the same script without errors on an seemingly identical Linux system.
My `sessionInfo()` is below.
```r
> sessionInfo()
R version 4.4.2 (2024-10-31)
Platform: x86_64-pc-linux-gnu
Running under: Arch Linux
Matrix products: default
BLAS: /usr/lib/libblas.so.3.12.0
LAPACK: /usr/lib/liblapack.so.3.12.0
locale:
[1] LC_CTYPE=C.UTF-8 LC_NUMERIC=C LC_TIME=C.UTF-8
[4] LC_COLLATE=C.UTF-8 LC_MONETARY=C.UTF-8 LC_MESSAGES=C.UTF-8
[7] LC_PAPER=C.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C
time zone: Europe/London
tzcode source: system (glibc)
attached base packages:
[1] stats graphics grDevices datasets utils methods base
loaded via a namespace (and not attached):
[1] compiler_4.4.2 tools_4.4.2 renv_1.0.11
>
```
### Component(s)
R
Contributor guide
Assessment
This issue has not been assessed yet.