【问题标题】:Error installing Ruby on Centos 7 using rvm使用 rvm 在 Centos 7 上安装 Ruby 时出错
【发布时间】:2018-02-26 08:35:21
【问题描述】:

我正在使用 rvm 在 Centos 7 上安装 Ruby 2.5.0。

但是我运行rvm install ruby-2.5.0 在编译阶段出现以下错误:

Error running '__rvm_make -j1',
please read /home/(username)/.rvm/log/1519585487_ruby-2.5.0/make.log
There has been an error while running make. Halting the installation.

/home/(username)/.rvm/log/1519585487_ruby-2.5.0/make.log的编译部分找到了:

compiling ./main.c
compiling dmydln.c
compiling miniinit.c
compiling dmyext.c
generating miniprelude.c
executable host ruby is required. use --with-baseruby option.
make: *** [miniprelude.c] Error 1
++ return 2

我该如何解决这个问题?

【问题讨论】:

  • which ruby 返回什么?你/有/有一颗红宝石吗?
  • /usr/bin/which: no ruby in .... 。没有安装 Ruby 版本。
  • google.com/… 有一些搜索结果。
  • 我已经搜索了这个问题的解决方案。但是,我发现您搜索中的一个链接很有用。谢谢你:)

标签: ruby centos rvm


【解决方案1】:

感谢@Keith Bennet 的评论。我找到了解决办法。

解决方案(这非常荒谬)是使用 yum install ruby 安装 ruby​​,然后再次尝试运行 rvm use ruby-2.5.0 。像魅力一样工作。

【讨论】:

    猜你喜欢
    • 2015-05-01
    • 1970-01-01
    • 2013-09-27
    • 2021-10-09
    • 2016-07-29
    • 2012-07-23
    • 2015-03-31
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多