我正在尝试使用 rvm 安装 ruby 2.5.0,但出现错误。我在 Ubuntu 18、16 和现在的 Linux Mint Cinnamon 上尝试过。
基本上我在运行安装 ruby 的代码之前所做的是:
在https://rvm.io/rvm/install上获取 GPG 密钥
然后:
curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm requirements
git clone myRepo...
git submodule update --init --recursive (in the folder of the repo)
rvm install ruby-2.5.0
Run Code Online (Sandbox Code Playgroud)
然后编译的时候出现这个错误:
运行“__rvm_make -j8”时出错,
请阅读/home/rafael/.rvm/log/1552616898_ruby-2.5.0/make.log
运行 make 时出错。停止安装。
最后在 make.log 中我们有:
[2019-03-14 23:28:45] __rvm_make
__rvm_make ()
{
\make "$@" || return $?
}
current path: /home/rafael/.rvm/src/ruby-2.5.0
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/rafael/.rvm/bin:/home/rafael/.rvm/bin
command(2): __rvm_make -j8
++ make -j8 …Run Code Online (Sandbox Code Playgroud)