我正在设置新服务器,并且已安装rvm版本1.29.9-next(主服务器)。运行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....
答案 0 :(得分:0)
我不知道为什么,但是在安装ruby 2.6.3(最新版本)之后,rvm install ruby-2.5.0成功运行了。