I find it easiest to start from scratch in these situations. Something like:
cd rm -rf .rvm bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) rvm reload brew install readline rvm install 1.9.2 --with-readline-dir=/usr/local/Cellar/readline/6.2.1 rvm 1.9.2 --default rvm 1.9.2@global gem install bundler You get rid of old unused gemsets and make a clean start with whatever is the latest 1.9.2 build. Replace 'rm ...' with 'mv .rvm .rvm_bkp' for extra caution. Get rid of the readline stuff if you're happy with the weird readline rvm gives you by default. If you go and make a cup of tea, it'll be done when you get back. rvm is awesome. On Sun, Sep 11, 2011 at 12:29 PM, Chris Berkhout <[email protected]>wrote: > Hi Tim, > > Rubygems is working fine for me at the moment: > > 79:~$ which gem > /Users/chrisberkhout/.rvm/rubies/ruby-1.9.2-p290/bin/gem > 79:~$ gem install bundler > Fetching: bundler-1.0.18.gem (100%) > Successfully installed bundler-1.0.18 > 1 gem installed > 79:~$ > > It may be that your gem cache is corrupted. > > Take a look at: > > http://www.tweetegy.com/2011/04/installing-rails-gem-fails-with-undefined-method-spec-for-nilnilclass-error/ > > Cheers, > Chris > > > On Sun, Sep 11, 2011 at 8:32 AM, Tim Uckun <[email protected]> wrote: > >> I seem to be having a lot of problems installing gems all of a sudden. >> At first I thought it was my system but now I am starting to think the >> problem is with rubygems. >> >> Every time I try to install a gem I get this error. >> >> gem install bundler >> Fetching: bundler-1.0.18.gem ( 13B) >> ERROR: While executing gem ... (NoMethodError) >> undefined method `spec' for nil:NilClass >> >> When I attempt to run bundler I get this one. >> >> Fetching source index for http://rubygems.org/ >> >> /home/tim/.rvm/gems/ree-1.8.7-2011.03/gems/bundler-1.0.18/lib/bundler/rubygems_integration.rb:100:in >> `spec_from_gem': undefined method `spec' for nil:NilClass >> (NoMethodError) >> >> >> Since gems doesn't work I tried to upgrade rubygems by hand but my >> manual download from rubygems was corrupted. >> >> Is something weird happening at rubygems? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby or Rails Oceania" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/rails-oceania?hl=en. >> >> > -- > You received this message because you are subscribed to the Google Groups > "Ruby or Rails Oceania" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rails-oceania?hl=en. > -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
