Monday, February 11, 2008

Ubuntu Ruby Gems

From a previous post on moving to Ubuntu by J, there was a mention of installing Ruby Gems.

Well, I came across an error when executing:

> sudo gem update --system

It complained of a Gem::GemNotFoundException. I found a quick fix for this which was to do the following:

> sudo gem update
> sudo gem update --system

This seemed to do the trick.

After the update though, there was another error when executing:

>gem -v

to check the version. The error was "uninitialized constant Gem::GemRunner (NameError)". Another quick fix for this one was to add an extra line to /usr/bin/gem

require 'rubygems/gem_runner'

after

require 'rubygems'

Probably more problems and solutions to come later ^^


W

No comments: