2

我正在Debian Wheezy使用 kernel运行2.6.32-028stab101.1

我刚刚安装RubyRVM. 当前安装的版本是

ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux],

但是,我需要1.8.7-p371当前代码的版本。

我尝试运行rvm install ruby-1.8.7-p371,但只得到以下输出:

Searching for binary rubies, this might take some time.
No binary rubies available for: debian/7.0/x86_64/ruby-1.8.7-p371.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing requirements for debian, might require sudo password.
Hit http://plex.r.worldssl.net lucid Release.gpg
Hit http://plex.r.worldssl.net lucid Release
Hit http://www.plexapp.com lucid Release.gpg
Hit http://plex.r.worldssl.net lucid/main amd64 Packages
Hit http://www.plexapp.com lucid Release
Hit http://ftp.us.debian.org sid Release.gpg
Hit http://www.plexapp.com lucid/main amd64 Packages
Hit http://ftp.us.debian.org sid Release
Hit http://ftp.us.debian.org sid/main amd64 Packages/DiffIndex
Hit http://debian.intergenia.de squeeze Release.gpg
Hit http://debian.intergenia.de squeeze/updates Release.gpg
Ign http://plex.originet.eu stable Release.gpg
Hit http://ftp.us.debian.org sid/main Translation-en/DiffIndex
Hit http://debian.intergenia.de squeeze Release
Ign http://plex.originet.eu stable Release
Ign http://plex.originet.eu stable/main amd64 Packages/DiffIndex
Ign http://www.plexapp.com lucid/main Translation-en_US
Hit http://debian.intergenia.de squeeze/updates Release
Ign http://www.plexapp.com lucid/main Translation-en
Hit http://debian.intergenia.de squeeze/main Sources
Hit http://debian.intergenia.de squeeze/contrib Sources
Hit http://debian.intergenia.de squeeze/non-free Sources
Hit http://debian.intergenia.de squeeze/main amd64 Packages
Hit http://debian.intergenia.de squeeze/contrib amd64 Packages
Hit http://debian.intergenia.de squeeze/non-free amd64 Packages
Hit http://debian.intergenia.de squeeze/updates/main Sources
Hit http://debian.intergenia.de squeeze/updates/contrib Sources
Hit http://debian.intergenia.de squeeze/updates/non-free Sources
Hit http://debian.intergenia.de squeeze/updates/main amd64 Packages
Ign http://plex.r.worldssl.net lucid/main Translation-en_US
Ign http://plex.r.worldssl.net lucid/main Translation-en
Hit http://debian.intergenia.de squeeze/updates/contrib amd64 Packages
Ign http://plex.originet.eu stable/main Translation-en_US
Hit http://debian.intergenia.de squeeze/updates/non-free amd64 Packages
Ign http://plex.originet.eu stable/main Translation-en
Err http://plex.originet.eu stable/main amd64 Packages
  404  Not Found
Ign http://debian.intergenia.de squeeze/updates/contrib Translation-en_US
Ign http://debian.intergenia.de squeeze/updates/contrib Translation-en
Ign http://debian.intergenia.de squeeze/updates/main Translation-en_US
Ign http://debian.intergenia.de squeeze/updates/main Translation-en
Ign http://debian.intergenia.de squeeze/updates/non-free Translation-en_US
Ign http://debian.intergenia.de squeeze/updates/non-free Translation-en
W: Failed to fetch http://plex.originet.eu/dists/stable/main/binary-amd64/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

我尝试安装readline,运行rvm mount,插入

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"

在我的.zshrc,但没有任何效果。

有什么我想念的想法吗?

4

2 回答 2

1

问题出在您的 apt 主机列表中,而不是在 RVM 中。

从您的文件中删除损坏的主机,/etc/apt/sources.list您应该没问题:)

于 2013-04-12T12:55:48.760 回答
0

rvm -v 说什么?

运行rvm get stable以获取最新的稳定版本

从那里尝试只是简单rvm install 1.8.7

安装后,您可以运行rvm default 1.8.7将其设置为默认 ruby

于 2013-04-10T13:27:19.047 回答