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

Add support for Ubuntu 24.04 #213

Merged
merged 1 commit into from
Apr 17, 2024
Merged

Add support for Ubuntu 24.04 #213

merged 1 commit into from
Apr 17, 2024

Conversation

glin
Copy link
Contributor

@glin glin commented Apr 17, 2024

Adds Ubuntu 24.04. It's currently in beta so this is just adding early support to unblock other things. When Ubuntu 24 is officially released, we can rerun the builds and update the documentation website.

- libreadline8t64
- libtcl8.6
- libtiff6
- libtirpc-dev
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was mostly identical to Ubuntu 22 besides some library name changes and the addition of libtirpc, which was new to me but apparently required sometimes?

https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Useful-libraries-and-programs

An implementation of XDR is required, and the R sources contain one which is likely to suffice (although a system version may have higher performance). XDR is part of RPC and historically has been part of libc on a Unix-alike. (In principle man xdr_string should tell you which library is needed, but it often does not: on some OSes it is provided by libnsl.) However some builds61 of glibc omit or hide it with the intention that the TI-RPC library be used, in which case libtirpc (and its development version) should be installed, and its headers62 need to be on the C include path or under /usr/include/tirpc.

It's also needed to link against libR, so included the -dev package as a dependency.

$ /opt/R/4.3.3/bin/R CMD config --ldflags
-Wl,--export-dynamic -fopenmp -L/usr/local/lib -L/opt/R/4.3.3/lib/R/lib -lR -lpcre2-8 -llzma -lbz2 -lz -ltirpc -lrt -ldl -lm -licuuc -licui18n

@glin glin merged commit 896e32a into main Apr 17, 2024
185 checks passed
@glin glin deleted the ubuntu24 branch April 17, 2024 18:49
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

Successfully merging this pull request may close these issues.

2 participants