Я пытаюсь изучать рельсы и не использовал его в последние несколько недель, но сегодня, когда я пытаюсь запустить любые команды рельсов, такие как
- 'рельсы -v'
- 'скрипт / сервер'
Я не переустанавливал ruby, но не имел понятия, что может быть не так
Нахожусь на совершенно новом Macbook Pro
Джереми-Джеросс-MacBook-Pro: ~ Джереми $ rails -v
/Library/Ruby/Site/1.8/rubygems/config_file.rb:172:in `merge': can't convert String into Hash (TypeError)
from /Library/Ruby/Site/1.8/rubygems/config_file.rb:172:in `initialize'
from /Library/Ruby/Site/1.8/rubygems.rb:384:in `new'
from /Library/Ruby/Site/1.8/rubygems.rb:384:in `configuration'
from /Library/Ruby/Site/1.8/rubygems.rb:634:in `path'
from /Library/Ruby/Site/1.8/rubygems/source_index.rb:68:in `installed_spec_directories'
from /Library/Ruby/Site/1.8/rubygems/source_index.rb:58:in `from_installed_gems'
from /Library/Ruby/Site/1.8/rubygems.rb:881:in `source_index'
from /Library/Ruby/Site/1.8/rubygems/gem_path_searcher.rb:81:in `init_gemspecs'
from /Library/Ruby/Site/1.8/rubygems/gem_path_searcher.rb:13:in `initialize'
from /Library/Ruby/Site/1.8/rubygems.rb:839:in `new'
from /Library/Ruby/Site/1.8/rubygems.rb:839:in `searcher'
from /Library/Ruby/Site/1.8/rubygems.rb:838:in `synchronize'
from /Library/Ruby/Site/1.8/rubygems.rb:838:in `searcher'
from /Library/Ruby/Site/1.8/rubygems.rb:478:in `find_files'
from /Library/Ruby/Site/1.8/rubygems.rb:1103
from /usr/bin/rails:9:in `require'
from /usr/bin/rails:9
Обновление:
whereis ruby: / usr / bin / ruby
ruby -v: ruby 1.8.7 (2009-06-12, уровень исправления 174) [i686-darwin10.3.0]
где гем: / usr / bin / gem
gem -v: `
/Library/Ruby/Site/1.8/rubygems/config_file.rb:172:in `merge': can't convert String into Hash (TypeError)
from /Library/Ruby/Site/1.8/rubygems/config_file.rb:172:in `initialize'
from /Library/Ruby/Site/1.8/rubygems.rb:384:in `new'
from /Library/Ruby/Site/1.8/rubygems.rb:384:in `configuration'
from /Library/Ruby/Site/1.8/rubygems.rb:634:in `path'
from /Library/Ruby/Site/1.8/rubygems/source_index.rb:68:in `installed_spec_directories'
from /Library/Ruby/Site/1.8/rubygems/source_index.rb:58:in `from_installed_gems'
from /Library/Ruby/Site/1.8/rubygems.rb:881:in `source_index'
from /Library/Ruby/Site/1.8/rubygems/gem_path_searcher.rb:81:in `init_gemspecs'
from /Library/Ruby/Site/1.8/rubygems/gem_path_searcher.rb:13:in `initialize'
from /Library/Ruby/Site/1.8/rubygems.rb:839:in `new'
from /Library/Ruby/Site/1.8/rubygems.rb:839:in `searcher'
from /Library/Ruby/Site/1.8/rubygems.rb:838:in `synchronize'
from /Library/Ruby/Site/1.8/rubygems.rb:838:in `searcher'
from /Library/Ruby/Site/1.8/rubygems.rb:478:in `find_files'
from /Library/Ruby/Site/1.8/rubygems.rb:1103
from /usr/bin/gem:8:in `require'
from /usr/bin/gem:8
gem list :
/Library/Ruby/Site/1.8/rubygems/config_file.rb:172:in `merge': can't convert String into Hash (TypeError)
from /Library/Ruby/Site/1.8/rubygems/config_file.rb:172:in `initialize'
from /Library/Ruby/Site/1.8/rubygems.rb:384:in `new'
from /Library/Ruby/Site/1.8/rubygems.rb:384:in `configuration'
from /Library/Ruby/Site/1.8/rubygems.rb:634:in `path'
from /Library/Ruby/Site/1.8/rubygems/source_index.rb:68:in `installed_spec_directories'
from /Library/Ruby/Site/1.8/rubygems/source_index.rb:58:in `from_installed_gems'
from /Library/Ruby/Site/1.8/rubygems.rb:881:in `source_index'
from /Library/Ruby/Site/1.8/rubygems/gem_path_searcher.rb:81:in `init_gemspecs'
from /Library/Ruby/Site/1.8/rubygems/gem_path_searcher.rb:13:in `initialize'
from /Library/Ruby/Site/1.8/rubygems.rb:839:in `new'
from /Library/Ruby/Site/1.8/rubygems.rb:839:in `searcher'
from /Library/Ruby/Site/1.8/rubygems.rb:838:in `synchronize'
from /Library/Ruby/Site/1.8/rubygems.rb:838:in `searcher'
from /Library/Ruby/Site/1.8/rubygems.rb:478:in `find_files'
from /Library/Ruby/Site/1.8/rubygems.rb:1103
from /usr/bin/gem:8:in `require'
from /usr/bin/gem:8
`
whereis rails: / usr / bin / rails