I tried:
require "twitter"
LoadError: no such file to load -- twitter
My ruby version:
ruby --version
ruby 1.9.2dev (2010-07-02) [i486-linux]
My twitter version:
gem list
twitter (2.0.2)
File permission:
ls -all /var/lib/gems/1.9.2/gems/twitter-2.0.2/lib/
-rw-r--r-- 1 root root 567 2011-12-23 17:16 twitter.rb
I also tried to use Bundler.
You are using an outdated Ruby 1.9.2 development version. I strongly encourage you to upgrade to Ruby 1.9.2.
That said, before Ruby 1.9 RubyGems was not loaded by default. Depending on your development snapshot, you might or might not have these changes already included.
You can easily force the use of RubyGems using