I Seem to Have Broken My RubyGems?
2009-01-16
I really don’t know how I did this. I’d like to say it’s the Gremlins in the machine, but it must be some kind of human error.
1 ~ $ gem --version 2 1.2.0 3 ~ $ gem env 4 RubyGems Environment: 5 - RUBYGEMS VERSION: 1.2.0 6 - RUBY VERSION: 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0] 7 - INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8 8 - RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby 9 - EXECUTABLE DIRECTORY: /usr/bin 10 - RUBYGEMS PLATFORMS: 11 - ruby 12 - universal-darwin-9 13 - GEM PATHS: 14 - /Library/Ruby/Gems/1.8 15 - /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8 16 - GEM CONFIGURATION: 17 - :update_sources => true 18 - :verbose => true 19 - :benchmark => false 20 - :backtrace => false 21 - :bulk_threshold => 1000 22 - "install" => "--env-shebang" 23 - "update" => "--env-shebang" 24 - :sources => ["http://gems.rubyforge.org", "http://gems.github.com/"] 25 - REMOTE SOURCES: 26 - http://gems.rubyforge.org 27 - http://gems.github.com/ 28 ~ $ sudo gem update --system 29 Password: 30 Updating RubyGems 31 Nothing to update 32 ~ $ rails newapp 33 create 34 create app/controllers 35 ... 36 create log/test.log 37 ~ $ cd newapp/ 38 ~/newapp $ script/generate model person 39 Rails requires RubyGems >= 1.3.1 (you have 1.2.0). Please `gem update --system` and try again. 40 41 $ ls -d /Library/Ruby/Gems/1.8/gems/rubygems* 42 /Library/Ruby/Gems/1.8/gems/rubygems-update-1.2.0 /Library/Ruby/Gems/1.8/gems/rubygems-update-1.3.1 43 /Library/Ruby/Gems/1.8/gems/rubygems-update-1.3.0
What’s going on? Anybody has an idea? A quick Google search didn’t turn up anything interesting. Probably I’m not searching for the right thing.
blog comments powered by Disqus