2013-07-05 92 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