在 CentOS 8 上安装 openblas

问题描述

我正在尝试在 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 ~]$

解决方法

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

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...