SUPPORT THE SITE WITH A CLICK

Subscribe Rss:

SUPPORT THE SITE WITH A CLICK

Friday, February 15, 2008

/usr/bin/gem:23: uninitialized constant Gem::GemRunner (NameError)

Upgrading the version of rubygems to the most current version by running

sudo gem update --system


Which introduced this error:
/usr/bin/gem:23: uninitialized constant Gem::GemRunner(NameError)

Simply add the line to the file /usr/bin/gem (note it will differ for mac and for ubuntu this will be the path)

require 'rubygems/gem_runner'
after
require 'rubygems'

This will solve the error.