【问题标题】:how install rvm on RHL7 using centos repo如何使用 centos repo 在 RHL7 上安装 rvm
【发布时间】:2016-02-12 15:31:47
【问题描述】:

如何使用 centos repo 在 RHL7 上安装 rvm(ruby)。

我知道如果我们使用 centos 存储库,我们应该使用 centos OS 而不是 RedHat,但我们有一个需要 Redhat 的专有软件。

当我尝试使用 rvm 安装 ruby​​ 1.93 时,我得到了这个:

rvm install 1.9.3
Searching for binary rubies, this might take some time.
No binary rubies available for: redhat/6/x86_64/ruby-1.9.3-p551.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for redhat.
Unable to locate SystemId file. Is this system registered?

我们的客户没有注册过redhat的系统,所以我配置了centos仓库。

但是我怎样才能告诉 RVM 使用这个 centos 存储库呢?

【问题讨论】:

    标签: centos rvm redhat


    【解决方案1】:

    RedHat 使用软件集合的概念为 Ruby、Python 等提供更新包: softwarecollections

    对于您的情况,他们有Ruby193Ruby22 的软件集合。

    在每个页面上,您都会找到有关如何使用它的说明。

    【讨论】:

      【解决方案2】:

      我解决了运行问题:

      rvm autolibs read-only
      

      这样 rvm 就不会尝试从 redhat 下载依赖项。但它会告诉我们缺少什么,因此我们可以使用 centos 存储库中的 yum install 手动安装缺少的内容。

      【讨论】:

        猜你喜欢
        • 2015-05-01
        • 1970-01-01
        • 1970-01-01
        • 2013-04-22
        • 2012-07-06
        • 2012-07-23
        • 1970-01-01
        • 1970-01-01
        • 2012-02-09
        相关资源
        最近更新 更多