РВМ. получение ошибки, связанной с git при установке ruby - PullRequest
1 голос
/ 09 января 2011

Я использую 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 stash во всех моих последних проектах на основе git и продолжаю получать то же самое.

Есть идеи как это исправить ??

Спасибо

PS Я использую 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.

Это может быть вирус?

Ответы [ 2 ]

1 голос
/ 06 августа 2012

Была такая же проблема.Похоже, что с RVM есть какой-то беспорядок, сделал эту команду, чтобы исправить это.

$ rvm cleanup repos
0 голосов
/ 11 января 2011

Репозиторий git, на который жалуется rvm, совершенно очевидно, один из тех, что найдены в ~/.rvm, а именно, репозиторий ruby-1.9.2-head.

Перейти к ~/.rvm/repos/ruby-1.9.2-head, спрятать ваши изменения иу тебя должно быть все в порядке.

...