Skip to content
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

Amazon Linux 2023 support #197

Open
mmuurr opened this issue Jan 22, 2024 · 4 comments
Open

Amazon Linux 2023 support #197

mmuurr opened this issue Jan 22, 2024 · 4 comments

Comments

@mmuurr
Copy link

mmuurr commented Jan 22, 2024

Are there any plans to add Amazon Linux 2023 to the list of Linux distros?
Most AWS workloads are themselves shifting to this distro but AWS's software repo lags a bit, so it'd be nice to have new R versions for AL2023.
The latest pre-built R version distributed by AWS is R 4.1.2; this RPM includes the Makeconf used to produce the binary, which can be used as a template for the build scripts here, if needed.
In principle it should be very close to the Fedora 37 & 38 builds (as AL2023 inherits quite a bit from Fedora 34+).

I'm mostly just curious, as I'll likely just build R from source anyhow on my AL2023 AMIs.

@gaborcsardi
Copy link
Contributor

Did you try to install the Fedora 37 or Fedora 38 build on AL2023?

@mmuurr
Copy link
Author

mmuurr commented Jan 23, 2024

Testing on AL2023

Some testing on AL2023 (which borrows from Fedora 34, 35, 36, and CentOS 9 Streams!):

Fedora 37 & 38 :-(

Both the Fedora 37 & 38 builds fail to run (with both emitting the error: error while loading shared libraries: libicuuc.so.71: cannot open shared object file: No such file or directory).

RHEL 9 :-)

The RHEL 9 build seems to work -- at least in my light testing:

  • From a fresh EC2 instance with the newest AL2023 AMI (al2023-ami-2023.3.20240122.0-kernel-6.1-x86_64).
  • Installed curl and git (only) to bootstrap the process.
  • Fetched from https://cdn.posit.co/r/rhel-9/pkgs/R-4.3.2-1-1.x86_64.rpm
  • Used dnf to install from that RPM, let dnf resolve dependencies. (Full output of that step included below.)
  • Run the test-r.sh script; which as far as I can tell (which may not be very far) seemed to execute normally. The full output (if you'd like to inspect) is below.
Output of dnf install step:
[ec2-user@myhost]$ sudo dnf install R-4.3.2-1-1.x86_64.rpm
Last metadata expiration check: 0:11:05 ago on Tue Jan 23 07:20:46 2024.
Dependencies resolved.
===================================================================================================================================================================================
 Package                                             Architecture                   Version                                             Repository                            Size
===================================================================================================================================================================================
Installing:
 R-4.3.2                                             x86_64                         1-1                                                 @commandline                          64 M
Installing dependencies:
 annobin-docs                                        noarch                         10.93-1.amzn2023.0.1                                amazonlinux                           92 k
 annobin-plugin-gcc                                  x86_64                         10.93-1.amzn2023.0.1                                amazonlinux                          887 k
 bzip2-devel                                         x86_64                         1.0.8-6.amzn2023.0.2                                amazonlinux                          214 k
 cairo                                               x86_64                         1.17.6-2.amzn2023.0.1                               amazonlinux                          684 k
 cpp                                                 x86_64                         11.4.1-2.amzn2023.0.2                               amazonlinux                           10 M
 flexiblas                                           x86_64                         3.0.4-3.amzn2023.0.2                                amazonlinux                           31 k
 flexiblas-devel                                     x86_64                         3.0.4-3.amzn2023.0.2                                amazonlinux                           98 k
 flexiblas-netlib                                    x86_64                         3.0.4-3.amzn2023.0.2                                amazonlinux                          4.0 M
 flexiblas-netlib64                                  x86_64                         3.0.4-3.amzn2023.0.2                                amazonlinux                          3.8 M
 flexiblas-openblas-openmp                           x86_64                         3.0.4-3.amzn2023.0.2                                amazonlinux                           16 k
 flexiblas-openblas-openmp64                         x86_64                         3.0.4-3.amzn2023.0.2                                amazonlinux                           16 k
 fontconfig                                          x86_64                         2.13.94-2.amzn2023.0.2                              amazonlinux                          273 k
 fonts-filesystem                                    noarch                         1:2.0.5-12.amzn2023.0.2                             amazonlinux                          9.5 k
 freetype                                            x86_64                         2.13.0-2.amzn2023.0.1                               amazonlinux                          422 k
 fribidi                                             x86_64                         1.0.11-3.amzn2023.0.2                               amazonlinux                           54 k
 gc                                                  x86_64                         8.0.4-5.amzn2023.0.2                                amazonlinux                          105 k
 gcc                                                 x86_64                         11.4.1-2.amzn2023.0.2                               amazonlinux                           32 M
 gcc-c++                                             x86_64                         11.4.1-2.amzn2023.0.2                               amazonlinux                           12 M
 gcc-gfortran                                        x86_64                         11.4.1-2.amzn2023.0.2                               amazonlinux                           11 M
 glibc-devel                                         x86_64                         2.34-52.amzn2023.0.7                                amazonlinux                           45 k
 glibc-headers-x86                                   noarch                         2.34-52.amzn2023.0.7                                amazonlinux                          446 k
 google-noto-fonts-common                            noarch                         20201206-2.amzn2023.0.2                             amazonlinux                           15 k
 google-noto-sans-vf-fonts                           noarch                         20201206-2.amzn2023.0.2                             amazonlinux                          492 k
 graphite2                                           x86_64                         1.3.14-7.amzn2023.0.2                               amazonlinux                           97 k
 guile22                                             x86_64                         2.2.7-2.amzn2023.0.3                                amazonlinux                          6.4 M
 harfbuzz                                            x86_64                         7.0.0-2.amzn2023.0.1                                amazonlinux                          868 k
 jbigkit-libs                                        x86_64                         2.1-21.amzn2023.0.2                                 amazonlinux                           54 k
 kernel-headers                                      x86_64                         6.1.72-96.166.amzn2023                              amazonlinux                          1.4 M
 langpacks-core-font-en                              noarch                         3.0-21.amzn2023.0.4                                 amazonlinux                           10 k
 libICE                                              x86_64                         1.0.10-6.amzn2023.0.2                               amazonlinux                           71 k
 libSM                                               x86_64                         1.2.3-8.amzn2023.0.2                                amazonlinux                           42 k
 libX11                                              x86_64                         1.7.2-3.amzn2023.0.4                                amazonlinux                          657 k
 libX11-common                                       noarch                         1.7.2-3.amzn2023.0.4                                amazonlinux                          152 k
 libXau                                              x86_64                         1.0.9-6.amzn2023.0.2                                amazonlinux                           31 k
 libXext                                             x86_64                         1.3.4-6.amzn2023.0.2                                amazonlinux                           41 k
 libXft                                              x86_64                         2.3.3-6.amzn2023.0.2                                amazonlinux                           64 k
 libXmu                                              x86_64                         1.1.3-6.amzn2023.0.2                                amazonlinux                           76 k
 libXrender                                          x86_64                         0.9.10-14.amzn2023.0.2                              amazonlinux                           28 k
 libXt                                               x86_64                         1.2.0-4.amzn2023.0.2                                amazonlinux                          181 k
 libdatrie                                           x86_64                         0.2.13-1.amzn2023.0.2                               amazonlinux                           33 k
 libgfortran                                         x86_64                         11.4.1-2.amzn2023.0.2                               amazonlinux                          818 k
 libicu                                              x86_64                         67.1-7.amzn2023.0.3                                 amazonlinux                          9.6 M
 libicu-devel                                        x86_64                         67.1-7.amzn2023.0.3                                 amazonlinux                          830 k
 libjpeg-turbo                                       x86_64                         2.1.4-2.amzn2023.0.5                                amazonlinux                          190 k
 libmpc                                              x86_64                         1.2.1-2.amzn2023.0.2                                amazonlinux                           62 k
 libpng                                              x86_64                         2:1.6.37-10.amzn2023.0.6                            amazonlinux                          128 k
 libquadmath                                         x86_64                         11.4.1-2.amzn2023.0.2                               amazonlinux                          194 k
 libquadmath-devel                                   x86_64                         11.4.1-2.amzn2023.0.2                               amazonlinux                           36 k
 libstdc++-devel                                     x86_64                         11.4.1-2.amzn2023.0.2                               amazonlinux                          2.2 M
 libthai                                             x86_64                         0.1.28-6.amzn2023.0.2                               amazonlinux                          209 k
 libtiff                                             x86_64                         4.4.0-4.amzn2023.0.17                               amazonlinux                          213 k
 libtool-ltdl                                        x86_64                         2.4.7-1.amzn2023.0.3                                amazonlinux                           38 k
 libwebp                                             x86_64                         1.2.4-1.amzn2023.0.6                                amazonlinux                          341 k
 libxcb                                              x86_64                         1.13.1-7.amzn2023.0.2                               amazonlinux                          230 k
 libxcrypt-devel                                     x86_64                         4.4.33-7.amzn2023                                   amazonlinux                           32 k
 make                                                x86_64                         1:4.3-5.amzn2023.0.2                                amazonlinux                          534 k
 openblas                                            x86_64                         0.3.18-1.amzn2023.0.3                               amazonlinux                           33 k
 openblas-openmp                                     x86_64                         0.3.18-1.amzn2023.0.3                               amazonlinux                          5.6 M
 openblas-openmp64                                   x86_64                         0.3.18-1.amzn2023.0.3                               amazonlinux                          5.5 M
 pango                                               x86_64                         1.48.10-1.amzn2023.0.3                              amazonlinux                          301 k
 pcre2-devel                                         x86_64                         10.40-1.amzn2023.0.3                                amazonlinux                          473 k
 pcre2-utf16                                         x86_64                         10.40-1.amzn2023.0.3                                amazonlinux                          216 k
 pcre2-utf32                                         x86_64                         10.40-1.amzn2023.0.3                                amazonlinux                          205 k
 pixman                                              x86_64                         0.40.0-3.amzn2023.0.3                               amazonlinux                          295 k
 tcl                                                 x86_64                         1:8.6.10-5.amzn2023.0.2                             amazonlinux                          1.1 M
 tk                                                  x86_64                         1:8.6.10-6.amzn2023.0.2                             amazonlinux                          1.6 M
 xml-common                                          noarch                         0.6.3-56.amzn2023.0.2                               amazonlinux                           32 k
 xz-devel                                            x86_64                         5.2.5-9.amzn2023.0.2                                amazonlinux                           53 k
 zlib-devel                                          x86_64                         1.2.11-33.amzn2023.0.5                              amazonlinux                           45 k

Transaction Summary
===================================================================================================================================================================================
Install  70 Packages

Total size: 182 M
Total download size: 119 M
Installed size: 531 M
Is this ok [y/N]: y
Downloading Packages:
(1/69): fribidi-1.0.11-3.amzn2023.0.2.x86_64.rpm                                                                                                   723 kB/s |  54 kB     00:00
(2/69): jbigkit-libs-2.1-21.amzn2023.0.2.x86_64.rpm                                                                                                651 kB/s |  54 kB     00:00
(3/69): gc-8.0.4-5.amzn2023.0.2.x86_64.rpm                                                                                                         1.2 MB/s | 105 kB     00:00
(4/69): libxcb-1.13.1-7.amzn2023.0.2.x86_64.rpm                                                                                                     10 MB/s | 230 kB     00:00
(5/69): libmpc-1.2.1-2.amzn2023.0.2.x86_64.rpm                                                                                                     2.9 MB/s |  62 kB     00:00
(6/69): libtool-ltdl-2.4.7-1.amzn2023.0.3.x86_64.rpm                                                                                               2.3 MB/s |  38 kB     00:00
(7/69): flexiblas-openblas-openmp-3.0.4-3.amzn2023.0.2.x86_64.rpm                                                                                  1.0 MB/s |  16 kB     00:00
(8/69): libstdc++-devel-11.4.1-2.amzn2023.0.2.x86_64.rpm                                                                                            38 MB/s | 2.2 MB     00:00
(9/69): flexiblas-devel-3.0.4-3.amzn2023.0.2.x86_64.rpm                                                                                            1.0 MB/s |  98 kB     00:00
(10/69): flexiblas-netlib-3.0.4-3.amzn2023.0.2.x86_64.rpm                                                                                           38 MB/s | 4.0 MB     00:00
(11/69): libthai-0.1.28-6.amzn2023.0.2.x86_64.rpm                                                                                                  4.8 MB/s | 209 kB     00:00
(12/69): pcre2-devel-10.40-1.amzn2023.0.3.x86_64.rpm                                                                                                17 MB/s | 473 kB     00:00
(13/69): guile22-2.2.7-2.amzn2023.0.3.x86_64.rpm                                                                                                    49 MB/s | 6.4 MB     00:00
(14/69): annobin-plugin-gcc-10.93-1.amzn2023.0.1.x86_64.rpm                                                                                         23 MB/s | 887 kB     00:00
(15/69): libICE-1.0.10-6.amzn2023.0.2.x86_64.rpm                                                                                                   3.7 MB/s |  71 kB     00:00
(16/69): gcc-gfortran-11.4.1-2.amzn2023.0.2.x86_64.rpm                                                                                              50 MB/s |  11 MB     00:00
(17/69): libwebp-1.2.4-1.amzn2023.0.6.x86_64.rpm                                                                                                   3.3 MB/s | 341 kB     00:00
(18/69): libSM-1.2.3-8.amzn2023.0.2.x86_64.rpm                                                                                                     2.2 MB/s |  42 kB     00:00
(19/69): libtiff-4.4.0-4.amzn2023.0.17.x86_64.rpm                                                                                                  8.6 MB/s | 213 kB     00:00
(20/69): harfbuzz-7.0.0-2.amzn2023.0.1.x86_64.rpm                                                                                                   15 MB/s | 868 kB     00:00
(21/69): libquadmath-11.4.1-2.amzn2023.0.2.x86_64.rpm                                                                                              4.8 MB/s | 194 kB     00:00
(22/69): libgfortran-11.4.1-2.amzn2023.0.2.x86_64.rpm                                                                                               20 MB/s | 818 kB     00:00
(23/69): libicu-devel-67.1-7.amzn2023.0.3.x86_64.rpm                                                                                                19 MB/s | 830 kB     00:00
(24/69): gcc-11.4.1-2.amzn2023.0.2.x86_64.rpm                                                                                                       47 MB/s |  32 MB     00:00
(25/69): libXmu-1.1.3-6.amzn2023.0.2.x86_64.rpm                                                                                                    272 kB/s |  76 kB     00:00
(26/69): libX11-1.7.2-3.amzn2023.0.4.x86_64.rpm                                                                                                     12 MB/s | 657 kB     00:00
(27/69): libpng-1.6.37-10.amzn2023.0.6.x86_64.rpm                                                                                                  2.5 MB/s | 128 kB     00:00
(28/69): flexiblas-netlib64-3.0.4-3.amzn2023.0.2.x86_64.rpm                                                                                        8.7 MB/s | 3.8 MB     00:00
(29/69): cpp-11.4.1-2.amzn2023.0.2.x86_64.rpm                                                                                                       40 MB/s |  10 MB     00:00
(30/69): graphite2-1.3.14-7.amzn2023.0.2.x86_64.rpm                                                                                                704 kB/s |  97 kB     00:00
(31/69): libXft-2.3.3-6.amzn2023.0.2.x86_64.rpm                                                                                                    3.3 MB/s |  64 kB     00:00
(32/69): freetype-2.13.0-2.amzn2023.0.1.x86_64.rpm                                                                                                  12 MB/s | 422 kB     00:00
(33/69): pcre2-utf16-10.40-1.amzn2023.0.3.x86_64.rpm                                                                                                11 MB/s | 216 kB     00:00
(34/69): fontconfig-2.13.94-2.amzn2023.0.2.x86_64.rpm                                                                                               16 MB/s | 273 kB     00:00
(35/69): pixman-0.40.0-3.amzn2023.0.3.x86_64.rpm                                                                                                   4.3 MB/s | 295 kB     00:00
(36/69): kernel-headers-6.1.72-96.166.amzn2023.x86_64.rpm                                                                                           31 MB/s | 1.4 MB     00:00
(37/69): libquadmath-devel-11.4.1-2.amzn2023.0.2.x86_64.rpm                                                                                        1.4 MB/s |  36 kB     00:00
(38/69): cairo-1.17.6-2.amzn2023.0.1.x86_64.rpm                                                                                                     20 MB/s | 684 kB     00:00
(39/69): pcre2-utf32-10.40-1.amzn2023.0.3.x86_64.rpm                                                                                               6.4 MB/s | 205 kB     00:00
(40/69): libjpeg-turbo-2.1.4-2.amzn2023.0.5.x86_64.rpm                                                                                             4.0 MB/s | 190 kB     00:00
(41/69): glibc-devel-2.34-52.amzn2023.0.7.x86_64.rpm                                                                                               2.2 MB/s |  45 kB     00:00
(42/69): libXt-1.2.0-4.amzn2023.0.2.x86_64.rpm                                                                                                     9.4 MB/s | 181 kB     00:00
(43/69): libdatrie-0.2.13-1.amzn2023.0.2.x86_64.rpm                                                                                                1.8 MB/s |  33 kB     00:00
(44/69): libXau-1.0.9-6.amzn2023.0.2.x86_64.rpm                                                                                                    2.0 MB/s |  31 kB     00:00
(45/69): pango-1.48.10-1.amzn2023.0.3.x86_64.rpm                                                                                                   6.8 MB/s | 301 kB     00:00
(46/69): libxcrypt-devel-4.4.33-7.amzn2023.x86_64.rpm                                                                                              986 kB/s |  32 kB     00:00
(47/69): openblas-openmp-0.3.18-1.amzn2023.0.3.x86_64.rpm                                                                                           38 MB/s | 5.6 MB     00:00
(48/69): flexiblas-3.0.4-3.amzn2023.0.2.x86_64.rpm                                                                                                 577 kB/s |  31 kB     00:00
(49/69): make-4.3-5.amzn2023.0.2.x86_64.rpm                                                                                                        8.5 MB/s | 534 kB     00:00
(50/69): openblas-0.3.18-1.amzn2023.0.3.x86_64.rpm                                                                                                 1.8 MB/s |  33 kB     00:00
(51/69): bzip2-devel-1.0.8-6.amzn2023.0.2.x86_64.rpm                                                                                               8.5 MB/s | 214 kB     00:00
(52/69): libXext-1.3.4-6.amzn2023.0.2.x86_64.rpm                                                                                                   2.9 MB/s |  41 kB     00:00
(53/69): zlib-devel-1.2.11-33.amzn2023.0.5.x86_64.rpm                                                                                              798 kB/s |  45 kB     00:00
(54/69): tk-8.6.10-6.amzn2023.0.2.x86_64.rpm                                                                                                        37 MB/s | 1.6 MB     00:00
(55/69): libXrender-0.9.10-14.amzn2023.0.2.x86_64.rpm                                                                                              990 kB/s |  28 kB     00:00
(56/69): libicu-67.1-7.amzn2023.0.3.x86_64.rpm                                                                                                      53 MB/s | 9.6 MB     00:00
(57/69): openblas-openmp64-0.3.18-1.amzn2023.0.3.x86_64.rpm                                                                                         21 MB/s | 5.5 MB     00:00
(58/69): tcl-8.6.10-5.amzn2023.0.2.x86_64.rpm                                                                                                      7.5 MB/s | 1.1 MB     00:00
(59/69): xz-devel-5.2.5-9.amzn2023.0.2.x86_64.rpm                                                                                                  983 kB/s |  53 kB     00:00
(60/69): fonts-filesystem-2.0.5-12.amzn2023.0.2.noarch.rpm                                                                                         581 kB/s | 9.5 kB     00:00
(61/69): google-noto-fonts-common-20201206-2.amzn2023.0.2.noarch.rpm                                                                               1.1 MB/s |  15 kB     00:00
(62/69): flexiblas-openblas-openmp64-3.0.4-3.amzn2023.0.2.x86_64.rpm                                                                               414 kB/s |  16 kB     00:00
(63/69): google-noto-sans-vf-fonts-20201206-2.amzn2023.0.2.noarch.rpm                                                                               11 MB/s | 492 kB     00:00
(64/69): langpacks-core-font-en-3.0-21.amzn2023.0.4.noarch.rpm                                                                                     416 kB/s |  10 kB     00:00
(65/69): glibc-headers-x86-2.34-52.amzn2023.0.7.noarch.rpm                                                                                          14 MB/s | 446 kB     00:00
(66/69): libX11-common-1.7.2-3.amzn2023.0.4.noarch.rpm                                                                                             4.8 MB/s | 152 kB     00:00
(67/69): gcc-c++-11.4.1-2.amzn2023.0.2.x86_64.rpm                                                                                                   48 MB/s |  12 MB     00:00
(68/69): annobin-docs-10.93-1.amzn2023.0.1.noarch.rpm                                                                                              685 kB/s |  92 kB     00:00
(69/69): xml-common-0.6.3-56.amzn2023.0.2.noarch.rpm                                                                                               243 kB/s |  32 kB     00:00
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                               52 MB/s | 119 MB     00:02
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                           1/1
  Installing       : flexiblas-3.0.4-3.amzn2023.0.2.x86_64                                                                                                                    1/70
  Installing       : libquadmath-11.4.1-2.amzn2023.0.2.x86_64                                                                                                                 2/70
  Installing       : libgfortran-11.4.1-2.amzn2023.0.2.x86_64                                                                                                                 3/70
  Installing       : libmpc-1.2.1-2.amzn2023.0.2.x86_64                                                                                                                       4/70
  Installing       : fonts-filesystem-1:2.0.5-12.amzn2023.0.2.noarch                                                                                                          5/70
  Installing       : tcl-1:8.6.10-5.amzn2023.0.2.x86_64                                                                                                                       6/70
  Installing       : openblas-0.3.18-1.amzn2023.0.3.x86_64                                                                                                                    7/70
  Installing       : libpng-2:1.6.37-10.amzn2023.0.6.x86_64                                                                                                                   8/70
  Installing       : libICE-1.0.10-6.amzn2023.0.2.x86_64                                                                                                                      9/70
  Installing       : libSM-1.2.3-8.amzn2023.0.2.x86_64                                                                                                                       10/70
  Installing       : openblas-openmp-0.3.18-1.amzn2023.0.3.x86_64                                                                                                            11/70
  Installing       : flexiblas-openblas-openmp-3.0.4-3.amzn2023.0.2.x86_64                                                                                                   12/70
  Installing       : flexiblas-netlib-3.0.4-3.amzn2023.0.2.x86_64                                                                                                            13/70
  Installing       : openblas-openmp64-0.3.18-1.amzn2023.0.3.x86_64                                                                                                          14/70
  Installing       : flexiblas-openblas-openmp64-3.0.4-3.amzn2023.0.2.x86_64                                                                                                 15/70
  Installing       : flexiblas-netlib64-3.0.4-3.amzn2023.0.2.x86_64                                                                                                          16/70
  Installing       : flexiblas-devel-3.0.4-3.amzn2023.0.2.x86_64                                                                                                             17/70
  Installing       : cpp-11.4.1-2.amzn2023.0.2.x86_64                                                                                                                        18/70
  Running scriptlet: xml-common-0.6.3-56.amzn2023.0.2.noarch                                                                                                                 19/70
  Installing       : xml-common-0.6.3-56.amzn2023.0.2.noarch                                                                                                                 19/70
  Installing       : annobin-docs-10.93-1.amzn2023.0.1.noarch                                                                                                                20/70
  Installing       : libX11-common-1.7.2-3.amzn2023.0.4.noarch                                                                                                               21/70
  Installing       : glibc-headers-x86-2.34-52.amzn2023.0.7.noarch                                                                                                           22/70
  Installing       : google-noto-fonts-common-20201206-2.amzn2023.0.2.noarch                                                                                                 23/70
  Installing       : google-noto-sans-vf-fonts-20201206-2.amzn2023.0.2.noarch                                                                                                24/70
  Installing       : langpacks-core-font-en-3.0-21.amzn2023.0.4.noarch                                                                                                       25/70
  Installing       : xz-devel-5.2.5-9.amzn2023.0.2.x86_64                                                                                                                    26/70
  Installing       : libicu-67.1-7.amzn2023.0.3.x86_64                                                                                                                       27/70
  Installing       : libicu-devel-67.1-7.amzn2023.0.3.x86_64                                                                                                                 28/70
  Installing       : bzip2-devel-1.0.8-6.amzn2023.0.2.x86_64                                                                                                                 29/70
  Installing       : zlib-devel-1.2.11-33.amzn2023.0.5.x86_64                                                                                                                30/70
  Installing       : libXau-1.0.9-6.amzn2023.0.2.x86_64                                                                                                                      31/70
  Installing       : libxcb-1.13.1-7.amzn2023.0.2.x86_64                                                                                                                     32/70
  Installing       : libX11-1.7.2-3.amzn2023.0.4.x86_64                                                                                                                      33/70
  Installing       : libXrender-0.9.10-14.amzn2023.0.2.x86_64                                                                                                                34/70
  Installing       : libXt-1.2.0-4.amzn2023.0.2.x86_64                                                                                                                       35/70
  Installing       : libXext-1.3.4-6.amzn2023.0.2.x86_64                                                                                                                     36/70
  Installing       : libXmu-1.1.3-6.amzn2023.0.2.x86_64                                                                                                                      37/70
  Installing       : libdatrie-0.2.13-1.amzn2023.0.2.x86_64                                                                                                                  38/70
  Installing       : libthai-0.1.28-6.amzn2023.0.2.x86_64                                                                                                                    39/70
  Installing       : libjpeg-turbo-2.1.4-2.amzn2023.0.5.x86_64                                                                                                               40/70
  Installing       : pcre2-utf32-10.40-1.amzn2023.0.3.x86_64                                                                                                                 41/70
  Installing       : kernel-headers-6.1.72-96.166.amzn2023.x86_64                                                                                                            42/70
  Installing       : libxcrypt-devel-4.4.33-7.amzn2023.x86_64                                                                                                                43/70
  Installing       : glibc-devel-2.34-52.amzn2023.0.7.x86_64                                                                                                                 44/70
  Installing       : pcre2-utf16-10.40-1.amzn2023.0.3.x86_64                                                                                                                 45/70
  Installing       : pcre2-devel-10.40-1.amzn2023.0.3.x86_64                                                                                                                 46/70
  Installing       : pixman-0.40.0-3.amzn2023.0.3.x86_64                                                                                                                     47/70
  Installing       : graphite2-1.3.14-7.amzn2023.0.2.x86_64                                                                                                                  48/70
  Installing       : cairo-1.17.6-2.amzn2023.0.1.x86_64                                                                                                                      49/70
  Installing       : harfbuzz-7.0.0-2.amzn2023.0.1.x86_64                                                                                                                    50/70
  Installing       : freetype-2.13.0-2.amzn2023.0.1.x86_64                                                                                                                   51/70
  Installing       : fontconfig-2.13.94-2.amzn2023.0.2.x86_64                                                                                                                52/70
  Running scriptlet: fontconfig-2.13.94-2.amzn2023.0.2.x86_64                                                                                                                52/70
  Installing       : libXft-2.3.3-6.amzn2023.0.2.x86_64                                                                                                                      53/70
  Running scriptlet: tk-1:8.6.10-6.amzn2023.0.2.x86_64                                                                                                                       54/70
  Installing       : tk-1:8.6.10-6.amzn2023.0.2.x86_64                                                                                                                       54/70
  Installing       : libwebp-1.2.4-1.amzn2023.0.6.x86_64                                                                                                                     55/70
  Installing       : libstdc++-devel-11.4.1-2.amzn2023.0.2.x86_64                                                                                                            56/70
  Installing       : libtool-ltdl-2.4.7-1.amzn2023.0.3.x86_64                                                                                                                57/70
  Installing       : fribidi-1.0.11-3.amzn2023.0.2.x86_64                                                                                                                    58/70
  Installing       : pango-1.48.10-1.amzn2023.0.3.x86_64                                                                                                                     59/70
  Installing       : jbigkit-libs-2.1-21.amzn2023.0.2.x86_64                                                                                                                 60/70
  Installing       : libtiff-4.4.0-4.amzn2023.0.17.x86_64                                                                                                                    61/70
  Installing       : gc-8.0.4-5.amzn2023.0.2.x86_64                                                                                                                          62/70
  Installing       : guile22-2.2.7-2.amzn2023.0.3.x86_64                                                                                                                     63/70
  Installing       : make-1:4.3-5.amzn2023.0.2.x86_64                                                                                                                        64/70
  Installing       : gcc-11.4.1-2.amzn2023.0.2.x86_64                                                                                                                        65/70
  Running scriptlet: gcc-11.4.1-2.amzn2023.0.2.x86_64                                                                                                                        65/70
  Installing       : libquadmath-devel-11.4.1-2.amzn2023.0.2.x86_64                                                                                                          66/70
  Installing       : gcc-gfortran-11.4.1-2.amzn2023.0.2.x86_64                                                                                                               67/70
  Installing       : gcc-c++-11.4.1-2.amzn2023.0.2.x86_64                                                                                                                    68/70
  Installing       : R-4.3.2-1-1.x86_64                                                                                                                                      69/70
  Installing       : annobin-plugin-gcc-10.93-1.amzn2023.0.1.x86_64                                                                                                          70/70
  Running scriptlet: annobin-plugin-gcc-10.93-1.amzn2023.0.1.x86_64                                                                                                          70/70
  Running scriptlet: fontconfig-2.13.94-2.amzn2023.0.2.x86_64                                                                                                                70/70
  Running scriptlet: annobin-plugin-gcc-10.93-1.amzn2023.0.1.x86_64                                                                                                          70/70
  Verifying        : gc-8.0.4-5.amzn2023.0.2.x86_64                                                                                                                           1/70
  Verifying        : jbigkit-libs-2.1-21.amzn2023.0.2.x86_64                                                                                                                  2/70
  Verifying        : fribidi-1.0.11-3.amzn2023.0.2.x86_64                                                                                                                     3/70
  Verifying        : libxcb-1.13.1-7.amzn2023.0.2.x86_64                                                                                                                      4/70
  Verifying        : libmpc-1.2.1-2.amzn2023.0.2.x86_64                                                                                                                       5/70
  Verifying        : flexiblas-devel-3.0.4-3.amzn2023.0.2.x86_64                                                                                                              6/70
  Verifying        : libtool-ltdl-2.4.7-1.amzn2023.0.3.x86_64                                                                                                                 7/70
  Verifying        : flexiblas-openblas-openmp-3.0.4-3.amzn2023.0.2.x86_64                                                                                                    8/70
  Verifying        : flexiblas-netlib-3.0.4-3.amzn2023.0.2.x86_64                                                                                                             9/70
  Verifying        : libstdc++-devel-11.4.1-2.amzn2023.0.2.x86_64                                                                                                            10/70
  Verifying        : guile22-2.2.7-2.amzn2023.0.3.x86_64                                                                                                                     11/70
  Verifying        : libthai-0.1.28-6.amzn2023.0.2.x86_64                                                                                                                    12/70
  Verifying        : gcc-11.4.1-2.amzn2023.0.2.x86_64                                                                                                                        13/70
  Verifying        : pcre2-devel-10.40-1.amzn2023.0.3.x86_64                                                                                                                 14/70
  Verifying        : gcc-gfortran-11.4.1-2.amzn2023.0.2.x86_64                                                                                                               15/70
  Verifying        : annobin-plugin-gcc-10.93-1.amzn2023.0.1.x86_64                                                                                                          16/70
  Verifying        : libICE-1.0.10-6.amzn2023.0.2.x86_64                                                                                                                     17/70
  Verifying        : libwebp-1.2.4-1.amzn2023.0.6.x86_64                                                                                                                     18/70
  Verifying        : libSM-1.2.3-8.amzn2023.0.2.x86_64                                                                                                                       19/70
  Verifying        : libtiff-4.4.0-4.amzn2023.0.17.x86_64                                                                                                                    20/70
  Verifying        : harfbuzz-7.0.0-2.amzn2023.0.1.x86_64                                                                                                                    21/70
  Verifying        : libquadmath-11.4.1-2.amzn2023.0.2.x86_64                                                                                                                22/70
  Verifying        : libgfortran-11.4.1-2.amzn2023.0.2.x86_64                                                                                                                23/70
  Verifying        : libicu-devel-67.1-7.amzn2023.0.3.x86_64                                                                                                                 24/70
  Verifying        : libXmu-1.1.3-6.amzn2023.0.2.x86_64                                                                                                                      25/70
  Verifying        : flexiblas-netlib64-3.0.4-3.amzn2023.0.2.x86_64                                                                                                          26/70
  Verifying        : libX11-1.7.2-3.amzn2023.0.4.x86_64                                                                                                                      27/70
  Verifying        : cpp-11.4.1-2.amzn2023.0.2.x86_64                                                                                                                        28/70
  Verifying        : libpng-2:1.6.37-10.amzn2023.0.6.x86_64                                                                                                                  29/70
  Verifying        : graphite2-1.3.14-7.amzn2023.0.2.x86_64                                                                                                                  30/70
  Verifying        : freetype-2.13.0-2.amzn2023.0.1.x86_64                                                                                                                   31/70
  Verifying        : libXft-2.3.3-6.amzn2023.0.2.x86_64                                                                                                                      32/70
  Verifying        : pixman-0.40.0-3.amzn2023.0.3.x86_64                                                                                                                     33/70
  Verifying        : pcre2-utf16-10.40-1.amzn2023.0.3.x86_64                                                                                                                 34/70
  Verifying        : fontconfig-2.13.94-2.amzn2023.0.2.x86_64                                                                                                                35/70
  Verifying        : kernel-headers-6.1.72-96.166.amzn2023.x86_64                                                                                                            36/70
  Verifying        : libquadmath-devel-11.4.1-2.amzn2023.0.2.x86_64                                                                                                          37/70
  Verifying        : cairo-1.17.6-2.amzn2023.0.1.x86_64                                                                                                                      38/70
  Verifying        : pcre2-utf32-10.40-1.amzn2023.0.3.x86_64                                                                                                                 39/70
  Verifying        : libjpeg-turbo-2.1.4-2.amzn2023.0.5.x86_64                                                                                                               40/70
  Verifying        : openblas-openmp-0.3.18-1.amzn2023.0.3.x86_64                                                                                                            41/70
  Verifying        : glibc-devel-2.34-52.amzn2023.0.7.x86_64                                                                                                                 42/70
  Verifying        : libXt-1.2.0-4.amzn2023.0.2.x86_64                                                                                                                       43/70
  Verifying        : libdatrie-0.2.13-1.amzn2023.0.2.x86_64                                                                                                                  44/70
  Verifying        : libXau-1.0.9-6.amzn2023.0.2.x86_64                                                                                                                      45/70
  Verifying        : pango-1.48.10-1.amzn2023.0.3.x86_64                                                                                                                     46/70
  Verifying        : libxcrypt-devel-4.4.33-7.amzn2023.x86_64                                                                                                                47/70
  Verifying        : flexiblas-3.0.4-3.amzn2023.0.2.x86_64                                                                                                                   48/70
  Verifying        : make-1:4.3-5.amzn2023.0.2.x86_64                                                                                                                        49/70
  Verifying        : zlib-devel-1.2.11-33.amzn2023.0.5.x86_64                                                                                                                50/70
  Verifying        : openblas-0.3.18-1.amzn2023.0.3.x86_64                                                                                                                   51/70
  Verifying        : bzip2-devel-1.0.8-6.amzn2023.0.2.x86_64                                                                                                                 52/70
  Verifying        : openblas-openmp64-0.3.18-1.amzn2023.0.3.x86_64                                                                                                          53/70
  Verifying        : libXext-1.3.4-6.amzn2023.0.2.x86_64                                                                                                                     54/70
  Verifying        : tk-1:8.6.10-6.amzn2023.0.2.x86_64                                                                                                                       55/70
  Verifying        : libicu-67.1-7.amzn2023.0.3.x86_64                                                                                                                       56/70
  Verifying        : libXrender-0.9.10-14.amzn2023.0.2.x86_64                                                                                                                57/70
  Verifying        : tcl-1:8.6.10-5.amzn2023.0.2.x86_64                                                                                                                      58/70
  Verifying        : xz-devel-5.2.5-9.amzn2023.0.2.x86_64                                                                                                                    59/70
  Verifying        : flexiblas-openblas-openmp64-3.0.4-3.amzn2023.0.2.x86_64                                                                                                 60/70
  Verifying        : gcc-c++-11.4.1-2.amzn2023.0.2.x86_64                                                                                                                    61/70
  Verifying        : fonts-filesystem-1:2.0.5-12.amzn2023.0.2.noarch                                                                                                         62/70
  Verifying        : google-noto-fonts-common-20201206-2.amzn2023.0.2.noarch                                                                                                 63/70
  Verifying        : google-noto-sans-vf-fonts-20201206-2.amzn2023.0.2.noarch                                                                                                64/70
  Verifying        : langpacks-core-font-en-3.0-21.amzn2023.0.4.noarch                                                                                                       65/70
  Verifying        : glibc-headers-x86-2.34-52.amzn2023.0.7.noarch                                                                                                           66/70
  Verifying        : libX11-common-1.7.2-3.amzn2023.0.4.noarch                                                                                                               67/70
  Verifying        : annobin-docs-10.93-1.amzn2023.0.1.noarch                                                                                                                68/70
  Verifying        : xml-common-0.6.3-56.amzn2023.0.2.noarch                                                                                                                 69/70
  Verifying        : R-4.3.2-1-1.x86_64                                                                                                                                      70/70

Installed:
  R-4.3.2-1-1.x86_64                                   annobin-docs-10.93-1.amzn2023.0.1.noarch                      annobin-plugin-gcc-10.93-1.amzn2023.0.1.x86_64
  bzip2-devel-1.0.8-6.amzn2023.0.2.x86_64              cairo-1.17.6-2.amzn2023.0.1.x86_64                            cpp-11.4.1-2.amzn2023.0.2.x86_64
  flexiblas-3.0.4-3.amzn2023.0.2.x86_64                flexiblas-devel-3.0.4-3.amzn2023.0.2.x86_64                   flexiblas-netlib-3.0.4-3.amzn2023.0.2.x86_64
  flexiblas-netlib64-3.0.4-3.amzn2023.0.2.x86_64       flexiblas-openblas-openmp-3.0.4-3.amzn2023.0.2.x86_64         flexiblas-openblas-openmp64-3.0.4-3.amzn2023.0.2.x86_64
  fontconfig-2.13.94-2.amzn2023.0.2.x86_64             fonts-filesystem-1:2.0.5-12.amzn2023.0.2.noarch               freetype-2.13.0-2.amzn2023.0.1.x86_64
  fribidi-1.0.11-3.amzn2023.0.2.x86_64                 gc-8.0.4-5.amzn2023.0.2.x86_64                                gcc-11.4.1-2.amzn2023.0.2.x86_64
  gcc-c++-11.4.1-2.amzn2023.0.2.x86_64                 gcc-gfortran-11.4.1-2.amzn2023.0.2.x86_64                     glibc-devel-2.34-52.amzn2023.0.7.x86_64
  glibc-headers-x86-2.34-52.amzn2023.0.7.noarch        google-noto-fonts-common-20201206-2.amzn2023.0.2.noarch       google-noto-sans-vf-fonts-20201206-2.amzn2023.0.2.noarch
  graphite2-1.3.14-7.amzn2023.0.2.x86_64               guile22-2.2.7-2.amzn2023.0.3.x86_64                           harfbuzz-7.0.0-2.amzn2023.0.1.x86_64
  jbigkit-libs-2.1-21.amzn2023.0.2.x86_64              kernel-headers-6.1.72-96.166.amzn2023.x86_64                  langpacks-core-font-en-3.0-21.amzn2023.0.4.noarch
  libICE-1.0.10-6.amzn2023.0.2.x86_64                  libSM-1.2.3-8.amzn2023.0.2.x86_64                             libX11-1.7.2-3.amzn2023.0.4.x86_64
  libX11-common-1.7.2-3.amzn2023.0.4.noarch            libXau-1.0.9-6.amzn2023.0.2.x86_64                            libXext-1.3.4-6.amzn2023.0.2.x86_64
  libXft-2.3.3-6.amzn2023.0.2.x86_64                   libXmu-1.1.3-6.amzn2023.0.2.x86_64                            libXrender-0.9.10-14.amzn2023.0.2.x86_64
  libXt-1.2.0-4.amzn2023.0.2.x86_64                    libdatrie-0.2.13-1.amzn2023.0.2.x86_64                        libgfortran-11.4.1-2.amzn2023.0.2.x86_64
  libicu-67.1-7.amzn2023.0.3.x86_64                    libicu-devel-67.1-7.amzn2023.0.3.x86_64                       libjpeg-turbo-2.1.4-2.amzn2023.0.5.x86_64
  libmpc-1.2.1-2.amzn2023.0.2.x86_64                   libpng-2:1.6.37-10.amzn2023.0.6.x86_64                        libquadmath-11.4.1-2.amzn2023.0.2.x86_64
  libquadmath-devel-11.4.1-2.amzn2023.0.2.x86_64       libstdc++-devel-11.4.1-2.amzn2023.0.2.x86_64                  libthai-0.1.28-6.amzn2023.0.2.x86_64
  libtiff-4.4.0-4.amzn2023.0.17.x86_64                 libtool-ltdl-2.4.7-1.amzn2023.0.3.x86_64                      libwebp-1.2.4-1.amzn2023.0.6.x86_64
  libxcb-1.13.1-7.amzn2023.0.2.x86_64                  libxcrypt-devel-4.4.33-7.amzn2023.x86_64                      make-1:4.3-5.amzn2023.0.2.x86_64
  openblas-0.3.18-1.amzn2023.0.3.x86_64                openblas-openmp-0.3.18-1.amzn2023.0.3.x86_64                  openblas-openmp64-0.3.18-1.amzn2023.0.3.x86_64
  pango-1.48.10-1.amzn2023.0.3.x86_64                  pcre2-devel-10.40-1.amzn2023.0.3.x86_64                       pcre2-utf16-10.40-1.amzn2023.0.3.x86_64
  pcre2-utf32-10.40-1.amzn2023.0.3.x86_64              pixman-0.40.0-3.amzn2023.0.3.x86_64                           tcl-1:8.6.10-5.amzn2023.0.2.x86_64
  tk-1:8.6.10-6.amzn2023.0.2.x86_64                    xml-common-0.6.3-56.amzn2023.0.2.noarch                       xz-devel-5.2.5-9.amzn2023.0.2.x86_64
  zlib-devel-1.2.11-33.amzn2023.0.5.x86_64

Complete!
Output of `test-r.sh`
[ec2-user@myhost]$ bash test-r.sh
+++ readlink -f test-r.sh
++ dirname /home/ec2-user/tmp/r-builds/test/test-r.sh
+ SCRIPT_DIR=/home/ec2-user/tmp/r-builds/test
+ R_HOME=/opt/R/4.3.2/lib/R
+ /opt/R/4.3.2/lib/R/bin/R --version
R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
https://www.gnu.org/licenses/.

+ /opt/R/4.3.2/lib/R/bin/Rscript -e 'sessionInfo()'
R version 4.3.2 (2023-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Amazon Linux 2023

Matrix products: default
BLAS/LAPACK: FlexiBLAS OPENBLAS-OPENMP;  LAPACK version 3.9.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: Navajo
tzcode source: system (glibc)

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] compiler_4.3.2
++ /opt/R/4.3.2/lib/R/bin/R CMD config CC
+ gcc --version
gcc (GCC) 11.4.1 20230605 (Red Hat 11.4.1-2)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

++ /opt/R/4.3.2/lib/R/bin/R CMD config CXX
+ g++ -std=gnu++17 --version
g++ (GCC) 11.4.1 20230605 (Red Hat 11.4.1-2)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

++ /opt/R/4.3.2/lib/R/bin/R CMD config FC
+ gfortran --version
GNU Fortran (GCC) 11.4.1 20230605 (Red Hat 11.4.1-2)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

+ LD_LIBRARY_PATH=:/opt/R/4.3.2/lib/R/lib
+ ldd /opt/R/4.3.2/lib/R/lib/libR.so
	linux-vdso.so.1 (0x00007ffdd106b000)
	libflexiblas.so.3 => /lib64/libflexiblas.so.3 (0x00007f3124e00000)
	libgfortran.so.5 => /lib64/libgfortran.so.5 (0x00007f3124a00000)
	libm.so.6 => /lib64/libm.so.6 (0x00007f31256d0000)
	libquadmath.so.0 => /lib64/libquadmath.so.0 (0x00007f3125688000)
	libreadline.so.8 => /lib64/libreadline.so.8 (0x00007f3124da8000)
	libpcre2-8.so.0 => /lib64/libpcre2-8.so.0 (0x00007f3124d0a000)
	liblzma.so.5 => /lib64/liblzma.so.5 (0x00007f31251d5000)
	libbz2.so.1 => /lib64/libbz2.so.1 (0x00007f3125672000)
	libz.so.1 => /lib64/libz.so.1 (0x00007f3124cf0000)
	libicuuc.so.67 => /lib64/libicuuc.so.67 (0x00007f312480e000)
	libicui18n.so.67 => /lib64/libicui18n.so.67 (0x00007f3124400000)
	libgomp.so.1 => /lib64/libgomp.so.1 (0x00007f31247c9000)
	libc.so.6 => /lib64/libc.so.6 (0x00007f3124000000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f31257b2000)
	libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f31247af000)
	libtinfo.so.6 => /lib64/libtinfo.so.6 (0x00007f3124780000)
	libicudata.so.67 => /lib64/libicudata.so.67 (0x00007f3122400000)
	libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f3122000000)
+ DIR=/home/ec2-user/tmp/r-builds/test
+ /opt/R/4.3.2/lib/R/bin/Rscript /home/ec2-user/tmp/r-builds/test/test.R
Installing package into ‘/tmp/Rtmp63HUsF’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/R6_2.5.1.tar.gz'
Content type 'application/x-gzip' length 63422 bytes (61 KB)
==================================================
downloaded 61 KB

* installing *source* package ‘R6’ ...
** package ‘R6’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package ‘R6’
    finding HTML links ... done
    R6Class                                 html
    as.list.R6                              html
    is.R6                                   html
*** copying figures
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (R6)

The downloaded source packages are in
	‘/tmp/Rtmp63HUsF/downloaded_packages’
Installing package into ‘/tmp/Rtmp63HUsF’
(as ‘lib’ is unspecified)
* installing *source* package ‘testpkg’ ...
** using staged installation
** libs
using C compiler: ‘gcc (GCC) 11.4.1 20230605 (Red Hat 11.4.1-2)’
using Fortran compiler: ‘GNU Fortran (GCC) 11.4.1 20230605 (Red Hat 11.4.1-2)’
using C++ compiler: ‘g++ (GCC) 11.4.1 20230605 (Red Hat 11.4.1-2)’
using C++11
gcc -I"/opt/R/4.3.2/lib/R/include" -DNDEBUG   -I/usr/local/include    -fpic  -g -O2  -c add.c -o add.o
gcc -I"/opt/R/4.3.2/lib/R/include" -DNDEBUG   -I/usr/local/include    -fpic  -g -O2  -c init.c -o init.o
gfortran  -fpic  -g -O2  -c square.f -o square.o
g++ -std=gnu++11 -I"/opt/R/4.3.2/lib/R/include" -DNDEBUG   -I/usr/local/include    -fpic  -g -O2  -c subtract.cpp -o subtract.o
g++ -std=gnu++11 -shared -L/opt/R/4.3.2/lib/R/lib -L/usr/local/lib -o testpkg.so add.o init.o square.o subtract.o -Wl,--export-dynamic -fopenmp -L/usr/local/lib -L/opt/R/4.3.2/lib/R/lib -lR -lpcre2-8 -llzma -lbz2 -lz -lrt -ldl -lm -licuuc -licui18n -lflexiblas -lflexiblas -fopenmp -lgfortran -lm -lquadmath -L/opt/R/4.3.2/lib/R/lib -lR
installing to /tmp/Rtmp63HUsF/00LOCK-testpkg/00new/testpkg/libs
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package ‘testpkg’
    finding HTML links ... done
    add_it                                  html
    square_it                               html
    subtract_it                             html
    testpkg-package                         html
** building package indices
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (testpkg)
Loading required package: boot
Loading required package: class
Loading required package: cluster
Loading required package: codetools
Loading required package: compiler
Loading required package: foreign
Loading required package: grid
Loading required package: KernSmooth
KernSmooth 2.23 loaded
Copyright M. P. Wand 1997-2009
Loading required package: lattice

Attaching package: ‘lattice’

The following object is masked from ‘package:boot’:

    melanoma

Loading required package: MASS
Loading required package: Matrix
Loading required package: mgcv
Loading required package: nlme
This is mgcv 1.9-0. For overview type 'help("mgcv-package")'.
Loading required package: nnet

Attaching package: ‘nnet’

The following object is masked from ‘package:mgcv’:

    multinom

Loading required package: parallel
Loading required package: rpart
Loading required package: spatial
Loading required package: splines
Loading required package: stats4
Loading required package: survival

Attaching package: ‘survival’

The following object is masked from ‘package:boot’:

    aml

Loading required package: tcltk
Loading required package: tools
Warning message:
no DISPLAY variable so Tk is not available
       jpeg         png        tiff       tcltk         X11        aqua
       TRUE        TRUE        TRUE        TRUE       FALSE       FALSE
   http/ftp     sockets      libxml        fifo      cledit       iconv
       TRUE        TRUE       FALSE        TRUE       FALSE        TRUE
        NLS       Rprof     profmem       cairo         ICU long.double
       TRUE        TRUE        TRUE        TRUE        TRUE        TRUE
    libcurl
       TRUE
trying URL 'https://cloud.r-project.org'
Content type 'text/html' length 858 bytes
==================================================
downloaded 858 bytes

AL2023 vs Fedora, RHEL/CentOS, and Amazon Linux 2

I notice that the OS-detection is looking specifically for Amazon Linux 2, then using "amazon" as the downstream conditional and treating that OS as RHEL/Centos 7, which is mostly correct for Amazon Linux 2.

AL2023 is quite different, however, and the new CPE string is cpe:2.3:o:amazon:amazon_linux:2023.
This would probably require making a few small changes to the existing "amazon" string in the existing repo to differentiate between the two Amazon distros.

AWS publishes base containers for their Linux distros, so I do think it would be possible to roll these into the standard list for r-builds.
I'm wading a tad out of my comfort zone here, but am certainly willing to help where I can and am happy to report back on my continued usage of the RHEL 9 build on AL2023 (i.e. I can report any discovered issues as I encounter them).

@glin
Copy link
Contributor

glin commented Jan 24, 2024

@mmuurr Thanks for that testing write-up! Without official AL2023 support, we could at least adjust the quick install script and/or document an AL2023 workaround.

To answer your question on official AL2023 support, the R builds follow Posit's platform support policy, which doesn't include AL2023, and barely covers AL2. From what I understand, there aren't any immediate plans to add AL2023 support because of the low demand, but AL2 has had quite a few requests. So for now, I don't think there will be official AL2023 support, but we could still add an AL2023 build here without full support, as we've done with Fedora.

The platform support mostly just means that Posit products won't support AL2023, e.g., there won't be precompiled binary packages for AL2023 from Package Manager.

@grantmcdermott
Copy link

grantmcdermott commented Apr 9, 2024

Just to follow up on (and add to) @mmuurr's very helpful comment and testing:

I was also able to install the latest version of R on a AL2023 Docker container using the RHEL 9 Posit build endpoint. Similarly, setting the default R package mirror/repo to PPM's rhel-9 binary builds (instead of installing source packages from CRAN) also seems to work well and without a hitch. Tested on a variety of packages from arrow to glmnet to tidyverse. Yay for fast and reliable binary installs!

Important exceptions: I don't think any geospatial libraries (sf, etc.) will work until the runtime dependencies are supported. See here. Same for Rmarkdown and Quarto since pandoc isn't (won't?) be supported. UPDATE: igraph is also a no-go due to missing glpk dependency (here).

I understand of course that AL2023 isn't officially supported by Posit, but this workaround suggests at least some breathing space for R users that need to work on this distro. FWIW there's a pretty strong movement internally at Amazon to move people over to AL2023. (AL2 is causing a bunch of of legacy headaches for different science and production systems.) So I expect that this will translate to increased uptake externally too at some point.

Abbreviated version of my install/test script:

docker pull amazonlinux:2023
docker run -it amazonlinux:2023 /bin/bash

# some system libs
dnf install -y libcurl-devel openssl-devel vim

# Which R version do we want?
R_VER="4.3.3"

# 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

# Set PPM as mirror/repo target for installation of pre-compiled R package binaries  
echo 'options(repos = c(PPM = "https://packagemanager.posit.co/cran/__linux__/rhel9/latest"))' >> $HOME/.Rprofile

R
# install.packages("<somepackage>") should work quickly and safely now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants