【问题标题】:Ruby 2.1.3 installation in Ubuntu 14.04.1 hang?Ubuntu 14.04.1 中的 Ruby 2.1.3 安装挂起?
【发布时间】:2014-09-26 23:03:17
【问题描述】:

任何人在 Ubuntu 14.04.1 中安装 Ruby 2.1.3 时都会遇到这个问题(使用 rvm)。

它挂在哪里:

root@ubuntu:~# rvm install 2.1.3
ruby-2.1.3 - #removing src/ruby-2.1.3..
Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/14.04/x86_64/ruby-2.1.3.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for ubuntu.
Requirements installation successful.
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-2.1.3, this may take a while depending on your cpu(s)...
ruby-2.1.3 - #downloading ruby-2.1.3, this may take a while depending on your connection...
ruby-2.1.3 - #extracting ruby-2.1.3 to /usr/local/rvm/src/ruby-2.1.3..........................................................
ruby-2.1.3 - #configuring....

配置部分一直旋转 30 多分钟,直到我用 Crtl-C 杀死它。

RVM 版本:

root@ubuntu:~# rvm -v
rvm 1.25.31 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]

【问题讨论】:

  • 在 OSX Mavericks 上有同样的问题。

标签: rvm ubuntu-14.04 ruby-2.1


【解决方案1】:

看起来这可能会奏效。它在 OS X 上对我有用。

rvm install 2.1.3 -- --with-setjmp-type=setjmp

this rvm issue 中找到了解决方案,它引用了core Ruby installation issue

【讨论】:

  • 我明白了。他们可能解决了这个问题。我现在可以毫无问题地安装 ruby​​ 2.1.3(实际上是几天前)。
  • 是的,看起来这个更改是几天前提交的,所以我猜你在这之后更新了 rvm。 :)
猜你喜欢
  • 2015-03-18
  • 2015-06-27
  • 2014-07-19
  • 1970-01-01
  • 1970-01-01
  • 2017-05-31
  • 2015-04-22
  • 1970-01-01
  • 2016-06-10
相关资源
最近更新 更多