-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support from Amazon Linux 2023 #27
Comments
Can you please try the branch feature/27? |
Thanks. I tried yesterday with the latest AL2023 Docker image and it mostly seems to work well for supported cases. For example, However, I did hit a snag trying to install packages where the relevant system dep is missing. For example,
That's expected, but the real snag is that once I triggered this behaviour for a package with a (known) missing system dep, then I couldn't install any other packages with sysdeps thereafter; including packages that would install fine if switched the order by installing them first. (E.g. Thoughts? Install scriptpull amazonlinux:2023
docker run -it amazonlinux:2023 /bin/bash
# Some system libs
dnf install -y git tar libcurl-devel
# Which R version do we want?
R_VER="4.4.0"
# Download from Posit and add to our PATH
curl -O https://cdn.posit.co/r/rhel-9/pkgs/R-${R_VER}-1-1.x86_64.rpm
dnf install -y R-${R_VER}-1-1.x86_64.rpm
echo "export PATH=\$PATH:/opt/R/${R_VER}/bin" >> $HOME/.bashrc
source $HOME/.bashrc
# Clone and install rspm feature/27 branch
git clone --branch feature/27 --single-branch --depth 1 https://github.com/cran4linux/rspm.git
R CMD INSTALL rspm
# Open R and enable rspm
R
rspm::enable() |
I certainly did not take into account the case where some dependencies may be available and some others not. I'll revise the logic considering this. |
Ok, it seems to work here now, but please double check just in case with the latest commit in that branch. We try to install the unique set of dependencies first, preserving the previous behavior, but then, if this fails, we try package by package. You'll still see the error, as expected, but dependencies for e.g. magick should work. |
Test and all seems to be working now from my side. Thanks! |
This will become v0.6.0 soon. |
On CRAN now. |
Brilliant, thanks! |
Hi Inaki,
As you probably know/remember, AL2023 is the successor to AL2 (already supported by rspm) and is based on RHEL 9.
A few of us have tested compatibility directly with PPM's (RSPM's) RHEL 9 builds and, for the most part, everything seems to be working smoothly. (c.f. rstudio/r-builds#197 (comment))
I personally have tested on many packages now and the only sharp edges that I have encountered are related to missing runtime system dependencies for
sf
(c.f. [Package Request] - GDAL amazonlinux/amazon-linux-2023#129), andigraph
(c.f. [Package Request] - glpk amazonlinux/amazon-linux-2023#733)Given the centrality of these two libraries, I'm not sure if you'd prefer to wait and defer. But I wanted to put it on your radar all the same.
Thanks for considering (and for all the work that you do supporting R infra for Linux users).
The text was updated successfully, but these errors were encountered: