2013-07-05 62 views
1

我正試圖在流浪盒Ubuntu 12.04上安裝rvm。當我運行的無業遊民腳本安裝停止由於這個命令是錯誤的:rvm安裝無法在流浪盒上搜索二進制紅寶石

curl -L https://get.rvm.io | sudo bash -s stable --ruby=$RUBY_VER --auto-dotfiles --verify-downloads 1 

這是無業遊民腳本中運行該命令的輸出:

Turning on auto dotfiles mode. 
Please read and follow further instructions. 
Press ENTER to continue. 
Downloading RVM from wayneeseguin branch stable 

Upgrading the RVM installation in /usr/local/rvm/ 
source /etc/profile.d/rvm.sh 
Upgrade of RVM in /usr/local/rvm/ is complete. 

Upgrade Notes: 

    * No new notes to display. 

# In case of problems: 
#  run and read: rvm notes 
#   read docs: http://rvm.io/ 
#   talk to us: http://webchat.freenode.net/?channels=rvm 
#  read cheatsheet: http://cheat.errtheblog.com/s/rvm 
# watch screencast: http://screencasts.org/episodes/how-to-use-rvm 
# open a bug report: https://github.com/wayneeseguin/rvm/issues 

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

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

Searching for binary rubies, this might take some time. 
.o binary rubies available for: ubuntu/12.04/i386/ruby-1.9.3-p374 
Continuing with compilation. Please read 'rvm help mount' to get more informatio 
n on binary rubies. 
Installing requirements for ubuntu, might require sudo password. 
Requirements installation successful. 
, this may take a while depending on your cpu(s)...es/ruby-1.9.3-p374 
, this may take a while depending on your connection... 
.tar.bz2', it's not possible to validate it.ng.org/pub/ruby/1.9/ruby-1.9.3-p374 
This could be because your RVM install's list of versions is out of date. You ma 
y 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 down 
load 
add '--verify-downloads 1' after the command. 

There has been an error fetching the ruby interpreter. Halting the installation. 

然而,當我嘗試運行無業遊民框的命令行相同的指令似乎工作:

[email protected]:~$ curl -sSL https://get.rvm.io | sudo bash -s stable --ruby=1.9.3-p374 --auto-dotfiles --verify-downloads 1 

輸出是這樣的:

Turning on auto dotfiles mode. 
Please read and follow further instructions. 
Press ENTER to continue. 
Downloading RVM from wayneeseguin branch stable 

Upgrading the RVM installation in /usr/local/rvm/ 

Upgrade of RVM in /usr/local/rvm/ is complete. 

Upgrade Notes: 

    * No new notes to display. 

# In case of problems: 
#  run and read: rvm notes 
#   read docs: http://rvm.io/ 
#   talk to us: http://webchat.freenode.net/?channels=rvm 
#  read cheatsheet: http://cheat.errtheblog.com/s/rvm 
# watch screencast: http://screencasts.org/episodes/how-to-use-rvm 
# open a bug report: https://github.com/wayneeseguin/rvm/issues 

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


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

Already installed ruby-1.9.3-p374. 
To reinstall use: 

    rvm reinstall 1.9.3-p374 

Creating alias default for ruby-1.9.3-p374. 
Recording alias default for ruby-1.9.3-p374. 
Creating default links/files 
Saving wrappers to '/usr/local/rvm/bin'........ 

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

任何想法?我想我可以逐個手動運行流浪文件中的說明,但它會破壞使用配置的全部目的。提前致謝。

+1

這不是一個問題,這是一個錯誤報告,應該在這裏打開:https://github.com/wayneeseguin/rvm/issues – mpapis

回答

1

沒關係。它發生了,我的Git被配置爲自動將從Linux結束的行轉換爲Windows格式,所以當我下載流浪文件時,當Linux試圖從它們中提取Ruby版本(以及其他類似的東西)時,它們變得毫無用處。

所以在我的情況下,解決辦法是重新安裝的Git,設置「配置結束轉換線」到「結賬原來的樣子,提交原樣」:

Intallation of Git with not line ending conversion