问题
CentOS8下yum安装R报错:
[root@rstudio ~]# sudo yum install R -y
Extra Packages for Enterprise Linux Modular 8 - x86_64 59 kB/s | 40 kB 00:00
Error:
Problem: package R-3.6.2-1.el8.x86_64 requires R-devel = 3.6.2-1.el8, but none of the providers can be installed
- package R-devel-3.6.2-1.el8.x86_64 requires R-core-devel = 3.6.2-1.el8, but none of the providers can be installed
- conflicting requests
- nothing provides texinfo-tex needed by R-core-devel-3.6.2-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
解决方案
发现是缺少了texinfo-tex,而这个包在CentOS8下的powertools repo中,而且并没有被默认开启,因此需要手动开启:
dnf install 'dnf-command(config-manager)' -y
sudo yum config-manager --set-enabled PowerTools