1

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 ボックスのコマンド ラインで同じ命令を実行しようとすると、次のように動作するようです。

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.

何か案は?vagrant ファイルの手順を 1 つずつ手動で実行できると思いますが、プロビジョニングを使用する目的全体が台無しになります。前もって感謝します。

4

1 に答える 1

1

どうでも。私の Git は行末を Linux から Windows 形式に自動的に変換するように設定されていたので、vagrant ファイルをダウンロードしたときに、Linux がそれらから Ruby バージョン (およびそのようなもの) を抽出しようとすると、それらのファイルは役に立たなくなりました。

したがって、私の場合の解決策は、「行末変換の構成」を「そのままチェックアウト、そのままコミット」に設定して、Gitを再インストールすることでした。

行末変換なしでの Git のインストール

于 2013-07-08T15:59:32.373 に答える