r-在CentOS上安装openblas 8



我正试图在CentOS 8上安装R,它需要openblas-0.3-5.el8,但使用dnf AppStream repo只能给我openblas-0.33-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 ~]$

丢失的软件包位于名为powertools的repo中,该repo在Centos8上默认禁用。您需要启用此回购,然后重试。在我的GCP虚拟机上,我运行了:

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

我使用wget下载了新版本的openblas和openblas线程。然后我可以安装它们,然后安装R。不知道为什么回购没有给我最新版本,但我现在很好。

相关内容

  • 没有找到相关文章

最新更新