installing leaflet on R v4.2 on RHEL 8.6

I cannot install neither the leaflet package or the gdal package. I have:
RHEL 8.6
R 4.2

I have added many shared libraries to RHEL: gdal-config. .... etc. But to no avail.
There is a lot a chatter about gdal and leaflet, but I have found none that addresses my particular configuration.

Any ideas as to why this will not install? Here is error message when I try to install within R:

checking PROJ: checking whether PROJ and sqlite3 are available for linking:... no
configure: error: libproj or sqlite3 not found in standard or given locations.
ERROR: configuration failed for package ‘terra’

  • removing ‘/home/fzuhl/R/x86_64-pc-linux-gnu-library/4.2/terra’
    Warning in install.packages :
    installation of package ‘terra’ had non-zero exit status
    ERROR: dependency ‘terra’ is not available for package ‘raster’
  • removing ‘/home/fzuhl/R/x86_64-pc-linux-gnu-library/4.2/raster’
    Warning in install.packages :
    installation of package ‘raster’ had non-zero exit status
    ERROR: dependency ‘raster’ is not available for package ‘leaflet’
  • removing ‘/home/fzuhl/R/x86_64-pc-linux-gnu-library/4.2/leaflet’
    Warning in install.packages :
    installation of package ‘leaflet’ had non-zero exit status

It seems you are missing sqlite3 in your system, have you tried installing it?

sudo dnf install sqlite

It seems you are missing two external dependencies:

  • sqlite / sudo dnf install sqlite
  • PROJ / sudo dnf install proj

The package names mentioned in error messages seem to follow ubuntu logic - PROJ is called libproj-dev, while sqlite is called sqlite3 - while in RHEL the names are somewhat different. Go figure...

2 Likes

For compile-time linking @fzuhl may want to install the devel packages as well, i.e. sqlite-devel and proj-devel. proj/proj-devel are supplied by the EPEL repository so he may want to activate EPEL prior to attempting to install any of those packages.

1 Like

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.