rvm安装无法在流浪盒上搜索二进制红宝石

时间:2013-07-05 21:43:18

标签: ruby rvm vagrant

我正在尝试在流氓盒子Ubuntu 12.04上安装rvm。当我运行vagrant脚本时,由于此命令出错,安装将停止:

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

这是在vagrant脚本中运行的该命令的输出:

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 <wayneeseguin@gmail.com>, Michal Papis <m
papis@gmail.com> [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.

但是当我尝试在流浪盒的命令行上运行相同的指令时,它似乎有效:

vagrant@precise32:~$ 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 <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [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 个答案:

答案 0 :(得分:1)

没关系。碰巧我的Git被配置为自动将行结尾从Linux转换为Windows格式,所以当我下载流浪文件时,当Linux试图从中提取Ruby版本(以及其他类似的东西)时,它们变得毫无用处。

所以我的情况下的解决方案是重新安装Git,将“配置行结束转换”设置为“按原样检出,按原样提交”:

Intallation of Git with not line ending conversion