Skip to content

CentOS 8: installing R

4 messages · roger bos, Marc Schwartz, Eric Berger +1 more

#
Dear all,

I seem to be having an impossible time install R on my centos 8 virtual
machine (I know centos 8 is no longer maintained, but it is a work server
so I have no choice in the matter.).  I installed EPEL and enabled
PowerTools, but I cannot install R due to conflicts in the requirements for
openblas-devel.  Could some help me get past this issue?  Thanks in
advance, Roger

[RCOAdmin at usd1sapp101 ~]$ sudo dnf install R
CentOS-8 - PowerTools
                                                          14 kB/s | 4.3 kB
    00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64
                                                           30 kB/s |  15 kB
    00:00
Extra Packages for Enterprise Linux 8 - x86_64
                                                           52 kB/s |  15 kB
    00:00
Error:
 Problem: package R-devel-4.0.5-1.el8.x86_64 requires R-core-devel =
4.0.5-1.el8, but none of the providers can be installed
  - package R-4.0.5-1.el8.x86_64 requires R-devel = 4.0.5-1.el8, but none
of the providers can be installed
  - package R-core-devel-4.0.5-1.el8.x86_64 requires openblas-devel, but
none of the providers can be installed
  - conflicting requests
  - nothing provides openblas(x86-32) = 0.3.3-5.el8 needed by
openblas-devel-0.3.3-5.el8.i686
  - nothing provides openblas-threads(x86-32) = 0.3.3-5.el8 needed by
openblas-devel-0.3.3-5.el8.i686
  - nothing provides openblas(x86-64) = 0.3.3-5.el8 needed by
openblas-devel-0.3.3-5.el8.x86_64
  - nothing provides openblas-threads(x86-64) = 0.3.3-5.el8 needed by
openblas-devel-0.3.3-5.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to
use not only best candidate packages)
[RCOAdmin at usd1sapp101 ~]$ sudo dnf install openblass-devel
Last metadata expiration check: 0:00:31 ago on Mon 24 May 2021 09:34:56 PM
CEST.
No match for argument: openblass-devel
Error: Unable to find a match: openblass-devel
[RCOAdmin at usd1sapp101 ~]$ sudo dnf install openblas-devel
Last metadata expiration check: 0:00:43 ago on Mon 24 May 2021 09:34:56 PM
CEST.
Error:
 Problem: cannot install the best candidate for the job
  - nothing provides openblas(x86-64) = 0.3.3-5.el8 needed by
openblas-devel-0.3.3-5.el8.x86_64
  - nothing provides openblas-threads(x86-64) = 0.3.3-5.el8 needed by
openblas-devel-0.3.3-5.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to
use not only best candidate packages)
[RCOAdmin at usd1sapp101 ~]$ sudo dnf install openblas-devel --nobest
Last metadata expiration check: 0:00:52 ago on Mon 24 May 2021 09:34:56 PM
CEST.
Error:
 Problem: conflicting requests
  - nothing provides openblas(x86-32) = 0.3.3-5.el8 needed by
openblas-devel-0.3.3-5.el8.i686
  - nothing provides openblas-threads(x86-32) = 0.3.3-5.el8 needed by
openblas-devel-0.3.3-5.el8.i686
  - nothing provides openblas(x86-64) = 0.3.3-5.el8 needed by
openblas-devel-0.3.3-5.el8.x86_64
  - nothing provides openblas-threads(x86-64) = 0.3.3-5.el8 needed by
openblas-devel-0.3.3-5.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages)
[RCOAdmin at usd1sapp101 ~]$
#
Hi Roger,

I can't speak to the details here, albeit, there was a thread back in 
April on R-Devel (also not the right list for this topic), where one of 
the Fedora maintainers provided some insights for CentOS 7.x, where 
there were missing/incompatible tool chain issues.

I would recommend re-posting this to r-sig-fedora, which is focused upon 
R on Red Hat and Fedora based Linux distributions, including CentOS:

   https://stat.ethz.ch/mailman/listinfo/r-sig-fedora

The Fedora/EPEL R maintainers do monitor and respond on that list, and 
can likely provide you with more informed replies.

Regards,

Marc Schwartz

Roger Bos wrote on 5/24/21 3:41 PM:
#
Hi Roger,
I have no experience with Centos 8 but I checked that it is possible to run
docker on it.
You might consider creating an ubuntu docker image with all the R tools
that you need, and then run the image on the Centos 8 machine.
You can specify a mount so that your docker image, including its R
sessions, have access to the file system on the Centos 8 machine.
Check out this link, for example:
https://kifarunix.com/install-and-use-docker-ce-on-centos-8/

HTH,
Eric


On Mon, May 24, 2021 at 10:56 PM Marc Schwartz via R-help <
r-help at r-project.org> wrote:

            

  
  
#
Openblas-threads is in the appstream repository rather than power tools.

https://centos.pkgs.org/8/centos-appstream-x86_64/openblas-threads-0.3.3-5.el8.x86_64.rpm.html

On Mon, May 24, 2021, 2:56 PM Marc Schwartz via R-help <r-help at r-project.org>
wrote: