【问题标题】:installing openblas on CentOS 8在 CentOS 8 上安装 openblas
【发布时间】:2021-10-31 23:42:08
【问题描述】:

我正在尝试在 CentOS 8 上安装 R,它需要 openblas-0.3.3-5.el8,但使用 dnf AppStream repo 只能给我 openblas-0.3.3-2.el8。有没有办法强制它安装较新的版本?在此先感谢,我真的被困在这里了。

[bosr@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

如果我尝试安装 R,以下是我收到的错误消息:

> [bosr@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@rth.ad.rothschild.com@usd1sapp101 ~]$

【问题讨论】:

    标签: r centos8 openblas


    【解决方案1】:

    缺少的软件包在一个名为 powertools 的 repo 中,默认情况下在 Centos8 上被禁用。您需要启用此存储库,然后重试。在我的 GCP 虚拟机上运行:

    sudo yum install epel-release
    sudo yum config-manager --set-enabled powertools
    sudo yum install R
    

    【讨论】:

      【解决方案2】:

      我使用 wget 下载了较新版本的 openblas 和 openblas-threads。然后我能够安装它们,然后安装 R。不知道为什么 repo 没有给我最新版本,但我现在很好。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2020-03-19
        • 1970-01-01
        • 2023-03-20
        • 2021-06-23
        • 1970-01-01
        • 1970-01-01
        • 2022-01-08
        • 2019-08-16
        相关资源
        最近更新 更多