RVM。安装ruby时获取git相关错误

RVM。安装ruby时获取git相关错误,git,rvm,Git,Rvm,我正在使用RVM,希望安装另一个版本的Ruby $ rvm install 1.9.2-head /Users/ovsiiko/.rvm/rubies/ruby-1.9.2-head, this may take a while depending on your cpu(s)... ruby-1.9.2-head - #fetching error: You have local changes to 'win32/configure.bat'; cannot switch branche

我正在使用RVM,希望安装另一个版本的Ruby

$ rvm install 1.9.2-head
/Users/ovsiiko/.rvm/rubies/ruby-1.9.2-head, this may take a while depending on your cpu(s)...

ruby-1.9.2-head - #fetching 
error: You have local changes to 'win32/configure.bat'; cannot switch branches.
From https://github.com/ruby/ruby
 * branch            ruby_1_9_2 -> FETCH_HEAD
error: Your local changes to 'win32/configure.bat' would be overwritten by merge.  Aborting.
Please, commit your changes or stash them before you can merge.
There has been an error while checking out branch ruby_1_9_2.           
Halting the installation.
There has been an error fetching the ruby interpreter. Halting the installation.
Spotlight既看不到
win32
文件夹,也看不到
configure.bat
文件。 实际上,我不知道这个错误消息指的是哪个文件夹。 在我最近的所有基于git的项目中,已经有了
git存储

有没有办法解决这个问题

多谢各位

另外,我正在使用MacOS X 10.6.4

更新: 我已卸载RVM,然后重新安装并重试

$ rvm install 1.9.2-head
/Users/ovsiiko/.rvm/rubies/ruby-1.9.2-head, this may take a while depending on your cpu(s)...

ruby-1.9.2-head - #fetching 
Cloning from https://github.com/ruby/ruby.git, this may take a while depending on your connection...
Initialized empty Git repository in /Users/ovsiiko/.rvm/repos/ruby-1.9.2-head/.git/
remote: Counting objects: 30907, done.
remote: Compressing objects: 100% (14057/14057), done.
remote: Total 30907 (delta 23362), reused 22680 (delta 16110)
Receiving objects: 100% (30907/30907), 21.45 MiB | 261 KiB/s, done.
Resolving deltas: 100% (23362/23362), done.
Checking out files: 100% (3515/3515), done.
error: You have local changes to 'symbian/configure.bat'; cannot switch branches.
From https://github.com/ruby/ruby
 * branch            ruby_1_9_2 -> FETCH_HEAD
error: Your local changes to 'symbian/configure.bat' would be overwritten by merge.  Aborting.
Please, commit your changes or stash them before you can merge.
There has been an error while checking out branch ruby_1_9_2.           
Halting the installation.
There has been an error fetching the ruby interpreter. Halting the installation.
现在,此尝试在
symbian/configure.bat
处返回错误


这可能是病毒吗?

很明显,rvm抱怨的git repo是在
~/.rvm
下发现的,特别是
ruby-1.9.2-head
repo


转到
~/.rvm/repos/ruby-1.9.2-head
,隐藏您的更改,您应该会没事的。

rvm抱怨的git回购很明显是
~/.rvm
下的一种,特别是
ruby-1.9.2-head
回购


转到
~/.rvm/repos/ruby-1.9.2-head
,保存您的更改,您会没事的。

也有同样的问题。看起来RVM有点乱,是用这个命令修复的

$ rvm cleanup repos

我也有同样的问题。看起来RVM有点乱,是用这个命令修复的

$ rvm cleanup repos

提示:Spotlight找不到文件并不意味着它不存在。Spotlight不会索引整个文件系统。要进行更完整的搜索,请使用提示:Spotlight找不到文件这一事实绝不意味着它不存在。Spotlight不会索引整个文件系统。要获得更完整的搜索,请使用感谢您的提示。git存放在~/.rvm/repos/ruby-1.9.2-head之后,我应该使用什么rvm命令来安装-head版本?”rvm安装1.9.2-head'再次返回相同错误。。。谢谢你。git stash的输出是什么?是否在存储中保存了任何内容?警告:在test/rexml/data/t63-2.svg中,CRLF将替换为LF。警告:test/rexml/data/testsrc.xml中的CRLF将替换为LF。警告:在test/rexml/data/ticket_61.xml中,CRLF将替换为LF。警告:在win32/configure.bat中,CRLF将替换为LF。警告:在win32/ifchange.bat中,CRLF将替换为LF。警告:在win32/rm.bat中,CRLF将替换为LF。警告:在win32/rmall.bat中,CRLF将替换为LF。警告:在win32/rmdirs.bat中,CRLF将替换为LF。主干上已保存的工作目录和索引状态WIP:5a17f4c修复空间。HEAD现在位于5a17f4c修复空间。感谢您的提示。git存放在~/.rvm/repos/ruby-1.9.2-head之后,我应该使用什么rvm命令来安装-head版本?”rvm安装1.9.2-head'再次返回相同错误。。。谢谢你。git stash的输出是什么?是否在存储中保存了任何内容?警告:在test/rexml/data/t63-2.svg中,CRLF将替换为LF。警告:test/rexml/data/testsrc.xml中的CRLF将替换为LF。警告:在test/rexml/data/ticket_61.xml中,CRLF将替换为LF。警告:在win32/configure.bat中,CRLF将替换为LF。警告:在win32/ifchange.bat中,CRLF将替换为LF。警告:在win32/rm.bat中,CRLF将替换为LF。警告:在win32/rmall.bat中,CRLF将替换为LF。警告:在win32/rmdirs.bat中,CRLF将替换为LF。主干上已保存的工作目录和索引状态WIP:5a17f4c修复空间。HEAD现在位于5a17f4c修复空间。