r-hub / rhub

R-hub API client
https://r-hub.github.io/rhub/
Other
353 stars 51 forks source link

Ensure cmake system requirement on all platforms #494

Closed astamm closed 2 years ago

astamm commented 2 years ago

As stated in the doc, at the moment, R-hub only uses sysreqsdb to install system requirements on Linux platforms. For macOS and Windows, at the moment, to ensure system requirements are installed, you might open an issue asking for its installation on the platform directly especially for commonly used third-party software.

I would very much appreciate if CMake which is listed already in sysreqsdb could be installed automatically on all platforms, not only Ubuntu.

Thanks for your nice work.

gaborcsardi commented 2 years ago

Hi, which platform is it not installed on? Is it installed on the corresponding CRAN platform?

astamm commented 2 years ago

Hi Gabor,

It cannot be found at least on

On Fedora Linux, R-devel, clang, gfortran, it seems that CMake does not create a lib folder when installing but a lib64 folder instead. I have to find a way to fix this on my side. At least Cmake is found there and also on Ubuntu Linux 20.04.1 LTS, R-release, GCC.

I have not tested other R-Hub platforms.

It is installed on win-builder. I do not know about other CRAN platforms.

Thanks.

gaborcsardi commented 2 years ago

On Debian it should be installed automatically if a package requests it. If this fails for you please point me to a build log. I installed it on Windows.

astamm commented 2 years ago

Thanks Gabor. It works indeed on Windows now. As for Debian, here is the log that I get: https://builder.r-hub.io/status/original/nloptrcmake_2.0.0.tar.gz-53b95e19753848e085dac8b5be040c3a

gaborcsardi commented 2 years ago

Thanks! Something has changed in Debian:

E: Repository 'http://deb.debian.org/debian testing InRelease' changed its 'Codename' value from 'bullseye' to 'bookworm'

Seems like the rhub/rocker-gcc-san is not updated daily, let me update it manually.

gaborcsardi commented 2 years ago

I have just updated it, so it should work again.

astamm commented 2 years ago

All working. Thank you very much.