You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "djmason199 (via GitHub)" <gi...@apache.org> on 2025/12/03 19:33:48 UTC
[I] Cannot install Arrow 22 to RHEL due to lack of escape characters in grepl [arrow]
djmason199 opened a new issue, #48321:
URL: https://github.com/apache/arrow/issues/48321
### Describe the bug, including details regarding any error messages, version, and platform.
Attempting to install arrow in RStudio Pro on Posit Workbench, AWS RHEL hosted, get the following error:
> install.packages("arrow")
Installing package into ‘/home/byw23/R/x86_64-pc-linux-gnu-library/4.3’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/arrow_22.0.0.tar.gz'
Content type 'application/x-gzip' length 4238550 bytes (4.0 MB)
==================================================
downloaded 4.0 MB
* installing *source* package ‘arrow’ ...
** package ‘arrow’ successfully unpacked and MD5 sums checked
** using staged installation
*** pkg-config found.
Error in grepl(paste(allowlist, collapse = "|"), os) :
invalid regular expression, reason 'Invalid contents of {}'
Calls: identify_binary -> ifelse -> check_allowlist -> grepl
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/USER/R/x86_64-pc-linux-gnu-library/4.3/arrow’
Warning in install.packages :
installation of package ‘arrow’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpsK2Blf/downloaded_packages’
Consultation with GPT shows that the issue is the parentheses in the OS name:
> sessionInfo()$running
[1] "Red Hat Enterprise Linux 9.6 (Plow)"
Can we add some escape characters to allow for things like spaces and parentheses in OS names?
### Component(s)
C++, R, Packaging
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Cannot install Arrow 22 to RHEL due to lack of escape characters in grepl [arrow]
Posted by "thisisnic (via GitHub)" <gi...@apache.org>.
thisisnic commented on issue #48321:
URL: https://github.com/apache/arrow/issues/48321#issuecomment-3611179155
Thanks for reporting this @djmason199, and your diagnosis of the problem sounds feasible; would you be interested in submitting a PR?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Cannot install Arrow 22 to RHEL due to lack of escape characters in grepl [arrow]
Posted by "djmason199 (via GitHub)" <gi...@apache.org>.
djmason199 commented on issue #48321:
URL: https://github.com/apache/arrow/issues/48321#issuecomment-3608542553
UPDATE:
Sys.setenv("ARROW_R_DEV" = "false")
Sys.setenv("LIBARROW_BINARY" = "true")
install.packages("arrow")
The above environment variable changes worked. Not sure if that helps.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [R] Cannot install Arrow 22 to RHEL due to lack of escape characters in grepl [arrow]
Posted by "thisisnic (via GitHub)" <gi...@apache.org>.
thisisnic commented on issue #48321:
URL: https://github.com/apache/arrow/issues/48321#issuecomment-3907424474
I'm not sure the parentheses are the problem here as the value in `sessionInfo()$running` isn't what we work with in the code. It could be that the attempt to get the allowlist failed and we were returned an invalid string - we should add more checking to the code which handles this so we don't fail this way in future. Glad a workaround was found in the meantime anyway!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org