Closed arecibo closed 2 years ago
There are several options:
use binary from CRAN, it works (i.e. do NOT set type="source"
)
If you compile from sources disable JRI via --disable-jri
, i.e., install.packages("rJava", configure.args="--disable-jri")
if you compile for sources and still need JRI, try the latest dev version, i.e., install.packages("rJava", repo="https://rforge.net")
The underlying issue is that your system doesn't get recognized correctly when configuring JRI. I cannot reproduce it so I don't know why, but the dev version uses latest automake tools so hopefully those should work. The correct build name for M1 macOS is aarch64-apple-darwin2*
.
Many thanks. The second option worked!
I am using R 4.2 (unstable 2021-11-21 r81221) on M1 Silicon Mac.
sudo R CMD javareconf
showed the following message.When I tried to compile rJava, I got the following message.
How to solve this problem?