ruby - 在 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....
解决方案
我不知道为什么,但 rvm install ruby-2.5.0 在我安装 ruby 2.6.3(最新稳定版)后成功运行。
推荐阅读
- python - 按下按钮后关闭 TK 窗口(无论按钮如何),而按钮仍执行其操作
- python - 将快速排序函数转换为类?
- javascript - 使用 vue.js 单个网页获取类型错误
- android - 更改 ObjectBox LiveData 查询
- sql - SQL 显示高于平均价格的书籍,显示所有书籍的平均价格。
- c# - 发布程序集中是否包含未使用的代码?
- python-2.7 - multiprocessing.Manager().Queue() TypeError: can't pickle thread.lock objects
- wcf - WCF 服务调用错误消息无法为具有权限的 SSL/TLS 建立安全通道
- javascript - 如何避免嵌套映射以从嵌套数组中获取我需要的值?
- javascript - 我正在尝试使“更多”按钮显示附加信息而不加载整个页面