在 Centos 7 上安装 R 失败
Failed to install R on Centos 7
我有 CentOS 7 (3.10.0-123.el7.x86_64),我似乎无法安装 R 然后让 Rstudio 服务器工作。
这是我所做的:
rpm -Uvh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install R
然后我得到这个错误:
Transaction check error:
file /usr/lib/systemd/system/blk-availability.service from install of device-mapper-7:1.02.107-5.el7_2.1.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
file /usr/sbin/blkdeactivate from install of device-mapper-7:1.02.107-5.el7_2.1.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
file /usr/share/man/man8/blkdeactivate.8.gz from install of device-mapper-7:1.02.107-5.el7_2.1.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
我不确定它是什么。 whereis R
没有任何内容,因为它没有安装。
如果我安装Rstudio Server,它会启动服务失败并提示ERROR unable to find installation of R in the system
有人能告诉我如何在 Centos 7 上正确安装 R 吗?
这与 R 无关。您的日志显示 "device-mapper" 和 "lvm2" 之间存在冲突,并且这些包用于操作硬盘和分区等设备(在有人对我投反对票之前) ,是的,这是一个粗略的简化)。
您应该在安装 R 之前尝试使用 yum 更新您的系统。
我通过先更新 lvm2 然后安装 R 解决了这个问题。
这个想法来自:https://bugzilla.redhat.com/show_bug.cgi?id=1294128
我有 CentOS 7 (3.10.0-123.el7.x86_64),我似乎无法安装 R 然后让 Rstudio 服务器工作。
这是我所做的:
rpm -Uvh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install R
然后我得到这个错误:
Transaction check error:
file /usr/lib/systemd/system/blk-availability.service from install of device-mapper-7:1.02.107-5.el7_2.1.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
file /usr/sbin/blkdeactivate from install of device-mapper-7:1.02.107-5.el7_2.1.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
file /usr/share/man/man8/blkdeactivate.8.gz from install of device-mapper-7:1.02.107-5.el7_2.1.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
我不确定它是什么。 whereis R
没有任何内容,因为它没有安装。
如果我安装Rstudio Server,它会启动服务失败并提示ERROR unable to find installation of R in the system
有人能告诉我如何在 Centos 7 上正确安装 R 吗?
这与 R 无关。您的日志显示 "device-mapper" 和 "lvm2" 之间存在冲突,并且这些包用于操作硬盘和分区等设备(在有人对我投反对票之前) ,是的,这是一个粗略的简化)。
您应该在安装 R 之前尝试使用 yum 更新您的系统。
我通过先更新 lvm2 然后安装 R 解决了这个问题。 这个想法来自:https://bugzilla.redhat.com/show_bug.cgi?id=1294128