首页 > 解决方案 > 在 CentOS 上安装 ruby​​ 2.5.0 时运行“__rvm_make -j12”时出错

问题描述

我正在设置一个新服务器并且我已经安装了 rvm 版本 1.29.9-next (master)。运行 rvm install ruby​​-2.5.0 时出现以下错误

Error running '__rvm_make -j12',
please read /home/projecty/.rvm/log/1564035272_ruby-2.5.0/make.log

There has been an error while running make. Halting the installation.

make.log 读取

compiling ./main.c
compiling dmydln.c
compiling miniinit.c
compiling dmyext.c
generating miniprelude.c
making dummy probes.h
compiling bignum.c
compiling class.c
compiling compar.c
compiling compile.c
compiling complex.c
./tool/generic_erb.rb:11:in `require': ./tool/colorize.rb:7: syntax error, unexpected ':', expecting ')' (SyntaxError)
...O.popen("tput smso", "r", err: IO::NULL, &:read) rescue nil)
                              ^
./tool/colorize.rb:7: dynamic constant assignment
...put smso", "r", err: IO::NULL, &:read) rescue nil)
                              ^
./tool/colorize.rb:7: syntax error, unexpected tAMPER, expecting '='
...t smso", "r", err: IO::NULL, &:read) rescue nil)
                              ^
./tool/colorize.rb:7: syntax error, unexpected kRESCUE_MOD, expecting kTHEN or ':' or '\n' or ';'
... err: IO::NULL, &:read) rescue nil)
                              ^
./tool/colorize.rb:35: syntax error, unexpected kEND, expecting $end
        from ./tool/generic_erb.rb:11
make: *** [miniprelude.c] Error 1
make: *** Waiting for unfinished jobs....

标签: rubycentosrvm

解决方案


我不知道为什么,但 rvm install ruby​​-2.5.0 在我安装 ruby​​ 2.6.3(最新稳定版)后成功运行。


推荐阅读