So, I got and interesting error when I installed and updated my rubygems on my slicehost account
sudo gem update --system
caused
uninitialized constant Gem::GemRunner (NameError)
The solution:
Add require “rubygems/gem_runner” on line 23
Change it from:
require 'rubygems'
Gem.manage_gems
To:
require 'rubygems'
require 'rubygems/gem_runner'
Gem.manage_gems
2 comments ↓
This fixes a hosed upgrade on Debian Lenny of ruby gems originally installed through apt-get. Been looking for a fix for a while! Thx.
Rubygems seems to install
/usr/bin/gem1.8, so you can remove/usr/bin/gemand create a symlink from/usr/bin/gem1.8to/usr/bin/gem.This seems to work nicely.
Leave a Comment