本文介绍了使用 rvm 安装 ruby 时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尝试使用 rvm 安装 ruby 时出现以下错误:
Am getting the below error while trying to install ruby using rvm:
$rvm install 1.9.3
Searching for binary rubies, this might take some time.
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system..................................................................................................
Error running 'requirements_debian_update_system ruby-1.9.3-p448',
please read /home/troy/.rvm/log/1379872584_ruby-1.9.3-p448/update_system.log
Requirements installation failed with status: 100.
你能帮我解决这个问题吗!
Can you help me on this!
推荐答案
从 /etc/apt/sources.list
中删除损坏的或 404 代码库.
Remove broken or 404 repos from your /etc/apt/sources.list
.
rvm
如果你不删除或注释掉它们就会失败.
rvm
will fail if you don't remove or comment them out.
要找出哪些不起作用,请运行 apt-get update
并查看哪些标记为失败.
To work out which aren't working, run apt-get update
and see which ones are marked as failing.
一旦您使用了 rvm
,安装 Ruby 就很容易了.
Once you are using rvm
, installing Ruby is easy.
rvm 安装 ruby
rvm 使用 ruby --default
我遇到了同样的问题.
这篇关于使用 rvm 安装 ruby 时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!