r-hub / rhub

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

dependency redux package not available on Fedora? #513

Closed bwlewis closed 2 years ago

bwlewis commented 2 years ago

When I try to check a package that depends on the redux package (https://cran.r-project.org/web/checks/check_results_redux.html) on Fedora, it fails to install redux due to a missing library dependency: hiredis.

Example output follows:

> * installing *source* package ‘redux’ ...
> ** package ‘redux’ successfully unpacked and MD5 sums checked
> ** using staged installation
> Using PKG_CFLAGS=-I/usr/include/hiredis
> Using PKG_LIBS=-lhiredis
> ------------------------- ANTICONF ERROR ---------------------------
> Configuration failed because hiredis was not found. Try installing:
> * deb: libhiredis-dev (Debian, Ubuntu, etc) 
> * rpm: hiredis-devel (Fedora, EPEL)
> * brew: hiredis (OSX)
> If hiredis is already installed, check that 'pkg-config' is in your 
> PATH and PKG_CONFIG_PATH contains a hiredis.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=...'
> --------------------------------------------------------------------
> ERROR: configuration failed for package ‘redux’
> * removing ‘/home/docker/R/redux’
gaborcsardi commented 2 years ago

Look at the beginning of the log if there is any sign for a failing hiredis installation. Most likely the current config is wrong (https://sysreqs.r-hub.io/pkg/redux) and the RPM package is called hiredis-devel, like the error message suggests, and not libhiredis-devel.

bwlewis commented 2 years ago

Indeed, that is the case:

Fedora Modular 33 - x86_64 - Updates 33 kB/s | 12 kB 00:00
No match for argument: libhiredis-devel
Error: Unable to find a match: libhiredis-devel
gaborcsardi commented 2 years ago

Should be fixed now: https://github.com/r-hub/sysreqsdb/commit/d0537495ac47afa35499586e411244e955858b21

bwlewis commented 2 years ago

thanks, Gabor!