2011-01-08 1 views
1

저는 RVM을 사용 중이며 다른 버전의 Ruby를 설치하려고합니다.RVM. 루비를 설치하는 동안 git 관련 오류가 발생합니다.

$ 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. 

스포트라이트도 win32 폴더도 configure.bat 파일을 볼 수 없습니다. 사실이 오류 메시지가 의미하는 폴더를 가져올 수 없습니다. 내 모든 근력 기반 프로젝트에 이미 git stash이 있었으며 계속 동일하게 유지되고 있습니다.

이 문제를 해결하는 방법은 무엇입니까 ??

감사합니다.

P. 나는 맥 OS X 10.6.4

UPDATE를 사용하고 있습니다 : 나는 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에서 오류를 반환했습니다.

바이러스 일 수 있습니까?

+0

단지 팁 : Spotlight가 파일을 찾지 못한다는 것은 그것이 존재하지 않는다는 것을 의미합니다. Spotlight는 전체 파일 시스템의 색인을 생성하지 않습니다. 보다 완벽한 검색을 위해서 [find] (http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/find.1.html) – asymmetric

답변

0

rvm이 불평하고있는 git repo는 분명히 ~/.rvm 아래에있는 메시지 중 하나이며 구체적으로는 ruby-1.9.2-head입니다.

~/.rvm/repos/ruby-1.9.2-head으로 가셔서 변경 사항을 저장하시면됩니다.

+0

힌트를 주셔서 감사합니다. 어떤 rvm 명령을 ~/.rvm/repos/ruby-1.9.2-head에 숨겨둔 후 -head 버전을 설치해야합니까? 'rvm install 1.9.2-head'는 같은 오류를 다시 반환합니다 ... 고맙습니다. – elias

+0

이상합니다. 'git stash'의 결과물은 무엇입니까? 은신처에 저장된 게 뭐니? – asymmetric

+0

경고 : CRLF는 test/rexml/data/t63-2.svg에서 LF로 바뀝니다. 경고 : CRLF는 test/rexml/data/testsrc.xml에서 LF로 바뀝니다. 경고 : CRLF는 test/rexml/data/ticket_61.xml에서 LF로 바뀝니다. 경고 : CRLF는 win32/configure.bat에서 LF로 바뀝니다. 경고 : win32/ifchange.bat에서 CRLF가 LF로 바뀝니다. 경고 : win32/rm.bat에서 CRLF가 LF로 바뀝니다. 경고 : CRLF는 win32/rmall.bat에서 LF로 바뀝니다. 경고 : CRLF는 win32/rmdirs.bat에서 LF로 바뀝니다. 저장된 작업 디렉토리 및 인덱스 상태 트렁크의 WIP : 5a17f4c는 공백을 수정합니다. – elias

1

같은 문제가있었습니다. RVM에 문제가있는 것처럼 보입니다.이 명령으로 문제를 해결했습니다.

$ rvm cleanup repos