2013-05-16 106 views
1

我对这个问题感到疯狂。我安装了rvm并重新安装了一百万次,但它不起作用。RVM Ruby安装失败,无校验和

我有一个全新安装的centOS 6.3,当我去安装rvm时,它完成了,但是在安装ruby的时候会给我一个奇怪的错误。这里是跟踪:

[[email protected] webapps]$ \curl -#L https://get.rvm.io | bash -s stable --autolibs=3  --ruby 
    ######################################################################## 100.0% 
Please read and follow further instructions. 
Press ENTER to continue. 
Downloading RVM from wayneeseguin branch stable 
    % Total % Received % Xferd Average Speed Time Time  Time Current 
       Dload Upload Total Spent Left Speed 
100 1062k 100 1062k 0  0 609k  0 0:00:01 0:00:01 --:--:-- 1533k 

Installing RVM to /home/pushprod/.rvm/ 
    RVM PATH line found in /home/pushprod/.bashrc /home/pushprod/.zshrc. 
    RVM sourcing line found in /home/pushprod/.bash_profile /home/pushprod/.zprofile. 

# RVM: Shell scripts enabling management of multiple ruby environments. 
# RTFM: https://rvm.io/ 
# HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net) 
# Cheatsheet: http://cheat.errtheblog.com/s/rvm 
# Screencast: http://screencasts.org/episodes/how-to-use-rvm 

# In case of any issues run 'rvm requirements' or read 'rvm notes' 

Installation of RVM in /home/pushprod/.rvm/ is almost complete: 

    * To start using RVM you need to run `source /home/pushprod/.rvm/scripts/rvm` 
    in all your open shell windows, in rare cases you need to reopen all shell windows. 

# pushprod, 
# 
# Thank you for using RVM! 
# I sincerely hope that RVM helps to make your life easier and 
# more enjoyable!!! 
# 
# ~Wayne 



rvm 1.20.9 (stable) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/] 

Searching for binary rubies, this might take some time. 
No binary rubies available for: centos/6.4/x86_64/ruby-2.0.0-p195. 
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. 
Installing requirements for centos, might require sudo password. 
There is no checksum for 'https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6' or 'RPM-GPG-KEY-EPEL-6', it's not possible to validate it. 
This could be because your RVM install's list of versions is out of date. You may want to 
update your list of rubies by running 'rvm get stable' and try again. 
If that does not resolve the issue and you wish to continue with unverified download 
add '--verify-downloads 1' after the command. 

There is no checksum for 'https://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm' or 'epel-release-6-8.noarch.rpm', it's not possible to validate it. 
This could be because your RVM install's list of versions is out of date. You may want to 
update your list of rubies by running 'rvm get stable' and try again. 
If that does not resolve the issue and you wish to continue with unverified download 
add '--verify-downloads 1' after the command. 

error: /home/pushprod/.rvm/archives/RPM-GPG-KEY-EPEL-6: import read failed(2). 
error: open of /home/pushprod/.rvm/archives/epel-release-6-8.noarch.rpm failed: No such file  or directory 

任何想法可能是什么问题?这是在杀我!

在此先感谢

+0

它看起来像一个bug,错误应该报告给项目=> https://github.com/wayneeseguin/rvm/issues – mpapis

回答

7

我遇到了同样的问题。尝试安装错误消息中引用的EPEL RPM;

error: open of /home/<username>/.rvm/archives/epel-release-6-8.noarch.rpm failed: No such file or directory

从以下网址(在RVM输出中引用)下载: https://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

然后输入; rvm get stable

上述步骤似乎让rvm正常运行对我来说。

+0

也为我工作。谢谢! –

+1

它的工作原理!您可以在[该教程]的帮助下安装EPEL(http://ithelpblog.com/os/linux/redhat/centos-redhat/how-to-install-epel-repository-on-centos-6-4-or-在redhat-6-4-红帽/)。 – 907th