4

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

Running Mac OS X 10.8.2

Community
  • 1
  • 1
Snowcrash
  • 80,579
  • 89
  • 266
  • 376
  • What OS are you on? Are you using RVM or rbenv or do you want to install into a default/system Ruby installation? – the Tin Man Dec 20 '12 at 14:52

2 Answers2

4

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

Joshua Pinter
  • 45,245
  • 23
  • 243
  • 245
-1

Download the latest version:

wget http://...

unpack the file:

tar xzvf ruby-...

and install it:

cd ruby-...
./configure
make
make install

For control, ruby --version

Andrew Marshall
  • 95,083
  • 20
  • 220
  • 214
Whitney R.
  • 630
  • 4
  • 10
  • 20