Ubuntu8.04でrubygemsを使うときいろいろ設定変更が必要なのでまとめておく エラーその1 /usr/bin/gem:23: uninitialized constant Gem::GemRunner (NameError) gemコマンドを使用すると上記のエラーが表示される 対処 /usr/bin/gemの10行目に一行追加 最初は下記のようになってる 9 require 'rubygems' 10 Gem.manage_gems それを下のように修正する。 10行目に require 'rubygems/gem_runner'と追加する。 修正によりgemコマンドが使用できるようになる。 あと、11行目はコメントアウトしておく(しておかないとエラーがでる。*のちのち原因を考える) 9 require 'rubygems' 10 require 'rubygems/gem_r