2013-05-16 104 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