【发布时间】: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/… 有一些搜索结果。
-
我已经搜索了这个问题的解决方案。但是,我发现您搜索中的一个链接很有用。谢谢你:)