Skip to content

Installing R on CentOS 8

8 messages · Iñaki Ucar, roger bos, Tom Callaway

#
I am trying to install R on my CentOS 8 server at work and getting an
error message about openblas.  It seems I need openblas-0.3.3-5.el.x86_64.
I have openblas-0.3.3-2.el8.x86_64.  I have added the EPEL repo and enabled
PowerTools.  I would like to upgrade my openblas from 0..3.3-2 to 0.3.3-5,
but I don't know how.  Or I could install a lower version of R that works
with 0.3.3-2, but I don't know   Could someone please help me get past this
error?

Thanks in advance, Roger.

[RCOAdmin at usd1sapp101 ~]$ sudo yum install R
[sudo] password for RCOAdmin:
Last metadata expiration check: 0:07:14 ago on Tue 25 May 2021 02:51:46 AM
CEST.
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)

P.S. I tried --skip-broken and --nobest.  It just skips the packages, so I
still don't get R installed, so skipping is not an option.
#
On Tue, 25 May 2021 at 03:06, Roger Bos <roger.bos at gmail.com> wrote:
openblas-devel, which is in the powertools repo, is not found above,
so it seems you don't actually have powertools enabled. Run:

$ dnf config-manager --set-enabled powertools

and try again, please.
#
Thanks for your reply.  As the paste below shows, when I try to enable
"powertools", I get an error message of "no matching repo".  Mine seems to
be proper case "PowerTools".  That command doesn't return anything, so I
assume it worked, but "dnf update" still returns the same error.  Any
further suggestion greatly appreciated!

[bosr at rth.ad.rothschild.com@usd1sapp101 ~]$ dnf config-manager
--set-enabled powertools
Error: This command has to be run under the root user.
[bosr at rth.ad.rothschild.com@usd1sapp101 ~]$ sudo dnf config-manager
--set-enabled powertools
Error: No matching repo to modify: powertools.
[bosr at rth.ad.rothschild.com@usd1sapp101 ~]$ sudo dnf config-manager
--set-enabled PowerTools
[bosr at rth.ad.rothschild.com@usd1sapp101 ~]$ sudo dnf update
CentOS-8 - AppStream
             271 MB/s | 5.4 MB     00:00
CentOS-8 - Base
            248 MB/s | 2.2 MB     00:00
CentOS-8 - PowerTools
            5.1 MB/s | 2.0 MB     00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64
             594 kB/s | 610 kB     00:01
Extra Packages for Enterprise Linux 8 - x86_64
             6.4 MB/s | 9.4 MB     00:01
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-core-devel-4.0.5-1.el8.x86_64 requires openblas-devel, but
none of the providers can be installed
  - cannot install the best update candidate for package R-devel-1-1.x86_64
  - 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)
[bosr at rth.ad.rothschild.com@usd1sapp101 ~]$
On Tue, May 25, 2021 at 5:34 AM I?aki Ucar <iucar at fedoraproject.org> wrote:

            

  
  
#
On Tue, 25 May 2021 at 13:34, Roger Bos <roger.bos at gmail.com> wrote:
On second read, it's actually openblas and openblas-threads what's not
found, which is weirder, because they're in AppStream. I don't know
what's happening here, but it seems it's a configuration problem,
because I cannot reproduce this in a docker container.

I?aki

  
    
#
All,

If I remove openblas and openblas-threads and then try to install it,
dnf wants to install version 0.3.3-2.el8, but for R I need version
0.3.3-5.el8.  I don't know how to force it to install the newer version.
Can anyone help on this front?

Thanks,

Roger


[bosr at rth.ad.rothschild.com@usd1sapp101 ~]$ sudo dnf install openblas
Last metadata expiration check: 0:39:47 ago on Tue 25 May 2021 06:50:01 PM
CEST.
Dependencies resolved.
=================================================================================================
 Package           Architecture    Version                 Repository
                Size
=================================================================================================
Installing:
 openblas          x86_64          0.3.3-2.el8
InstallMedia-AppStream          4.3 M

Transaction Summary
=================================================================================================
Install  1 Package

Total size: 4.3 M
Installed size: 31 M
Is this ok [y/N]: N
On Tue, May 25, 2021 at 9:36 AM I?aki Ucar <iucar at fedoraproject.org> wrote:

            

  
  
#
FYI: I used wget to download the newer version of openblas and
openblas-threads.  I was then able to install them and then install R.  Not
sure why the repo wasn't giving me the latest version, but I am good now.
On Mon, May 24, 2021 at 9:05 PM Roger Bos <roger.bos at gmail.com> wrote:

            

  
  
#
Best guess, something to do with repo prioritization?

~spot
On Tue, May 25, 2021 at 2:43 PM Roger Bos <roger.bos at gmail.com> wrote:

            

  
  
#
I had to use where to install libxml2-devel, so there is probably something
not optimal about my config, but I have no onsite linux support and limited
experience myself.  Currently just happy to have R running. Thanks to
everyone who chimed in.
On Tue, May 25, 2021, 2:45 PM Tom Callaway <spotrh at gmail.com> wrote: