【问题标题】:Failed to install R on Centos 7在 Centos 7 上安装 R 失败
【发布时间】:2016-07-26 04:25:12
【问题描述】:

我有 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 更新系统?
  • 你是对的。请张贴作为答案,我会接受你的学分。谢谢。

标签: r centos7 rstudio-server


【解决方案1】:

这与R无关。您的日志显示“device-mapper”和“lvm2”之间存在冲突,这些软件包用于操作硬盘和分区等设备(在有人反对我之前,是的,这是粗略的简化)。

在安装 R 之前,您应该尝试使用 yum 更新您的系统。

【讨论】:

    【解决方案2】:

    我通过先更新lvm2,然后安装R解决了这个问题。 这个想法来自:https://bugzilla.redhat.com/show_bug.cgi?id=1294128

    【讨论】:

      猜你喜欢
      • 2015-08-22
      • 1970-01-01
      • 1970-01-01
      • 2017-11-03
      • 2020-08-15
      • 2015-09-13
      • 2021-12-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多