Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reinstalling rubygems

Tags:

ruby

rubygems

How do you reinstall RubyGems as mentioned in no such file to load -- rubygems (LoadError)?

Running Mac OS X 10.8.2

like image 261
Snowcrash Avatar asked Aug 31 '25 04:08

Snowcrash


1 Answers

Download it right from the source.

I had massive trouble trying to get gem update --system or gem install rubygems-update working properly.

The only thing that worked was downloading right from the source and just overwriting your old version of RubyGems.

  1. Simply download the latest here (was 2.0.3 at time of writing).

  2. Extract the downloaded archive and cd into the resulting directory.

  3. Run the setup with ruby setup.rb. (You may need to use sudo for this, but try it without first.)

All good!

JP

like image 195
Joshua Pinter Avatar answered Sep 02 '25 18:09

Joshua Pinter