[R-pkg-devel] Current recommendations re. GitHub Action?
Ivan Krylov
kry|ov@r00t @end|ng |rom gm@||@com
Wed Jan 4 10:18:40 CET 2023
On Mon, 2 Jan 2023 19:18:33 -0600
Spencer Graves <spencer.graves using effectivedefense.org> wrote:
> However, Ubuntu failed with devel and oldrel1, complaining,
> "there is no package called ‘rcmdcheck’".
If we start from the error message and work backwards, it's easy to see
that `rcmdcheck` fails to install because it depends on `curl`, which
also fails to install. `curl` fails to install because the virtual
machine running the GitHub Action doesn't have libcurl headers
installed; there's even an error message about that, but it's not fatal:
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libcurl was not found. Try installing:
* deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
* rpm: libcurl-devel (Fedora, CentOS, RHEL)
If libcurl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libcurl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
I don't have enough experience in the abstraction layers involved, but
if you stuff a `sudo apt install libcurl4-openssl-dev` (which should
run as a system command line, just like the "Install system
dependencies" step) somewhere before the "Install dependencies" step,
it should work.
--
Best regards,
Ivan
More information about the R-package-devel
mailing list