【发布时间】:2013-07-15 16:16:46
【问题描述】:
我正在使用旧版 Rails 系统。我需要一份 ruby 1.8.7 的副本 我刚刚在工作中得到了一台新电脑(终于),它有 ubuntu 12.04
不幸的是,我刚刚发现可用于我的系统的 rvm-rubies 不包含 1.8.7(请参阅下面的列表)
如何安装 ruby 1.8.7? 还有其他我可以指出的来源吗?
请注意:我没有使用 apt-get 安装 rvm,这不是问题
这是可用的红宝石列表:
# Rubies available for 'ubuntu/12.04/x86_64':
ruby-1.9.3-p194
ruby-1.9.3-p286
ruby-1.9.3-p327
ruby-1.9.3-p362
ruby-1.9.3-p374
ruby-1.9.3-p392
ruby-1.9.3-p429
ruby-1.9.3-p448
ruby-2.0.0-p0
ruby-2.0.0-p195
ruby-2.0.0-p247
编辑:
请注意,这里是一些更简单的 rvm 命令的输出:
triton:[~]% rvm list
rvm rubies
# No rvm rubies installed yet. Try 'rvm help install'.
并且 rvm install 给出了这个消息(这表明标准存储库中没有 1.8.7 版本)。
triton:[~]% rvm install 1.8.7
Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/12.04/x86_64/ruby-1.8.7-p374.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
You requested building with 'gcc-4.4' but it is not in your path.
【问题讨论】:
-
我的 Ubuntu 12.08 在
apt中有ruby1.8。它很可能在 rvm 中不可用,因为它已被淘汰。编辑:我在 rvm 中有 1.8.6 的红宝石可供安装... -
我没有通过 apt 安装。它不是在 apt-sources 中查找,而是在 rvm 源代码中查找。但是 - 是的:) 它在 rvm 中不可用。我只是想知道是否有另一种安装 rvm 的方法 - 如果我可以指出它,例如 10.04 rvm 源(或其他 - 只要它有 1.8.7)
-
您可以从这里删除 rvm 并从源代码安装 ruby 1.8.7p374:ftp.ruby-lang.org/pub/ruby/1.8
-
你试过
rvm install ruby-1.8.7吗? -
“而 rvm install 给出了这条消息(这表明标准存储库中没有 1.8.7 版本)。”这并没有说明没有 1.8.7 版本,只是没有该版本的二进制文件。但它确实表明你缺少一个名为 gcc.4-4 的编译器
标签: ruby rvm ubuntu-12.04