LoadError: no such file to load -- gem not found in irb, but found in app console

I installed a gem (sudo gem install vzaar) , which is listed now in
the gem list :
… gem list
rubyist-aasm (2.1.1)
SystemTimer (1.2)
vzaar (0.2.2.1)
xml-simple (1.0.12)

in my app I am using this gem, without any problem

class Academy::PagesController < ApplicationController
require ‘hpricot’
require ‘vzaar’

no problem in the console
$ script/console
Loading development environment (Rails 2.3.8)

require ‘vzaar’
=> []

but when using irb, I get a LoadError…
re ‘vzaar’
LoadError: no such file to load – vzaar
from (irb):1:in `require’
from (irb):1

what’s wrong with irb ???

here is my gem env

gem env
RubyGems Environment:

I notice that GEM_PATH = /usr/local/lib/ruby/gems/1.8 (where are my
rails gems
but gempath" => ["/usr/lib/ruby/gems/1.8", “/Users/yves/.gem/ruby/1.8/
gems”]
any trouble with that ?

thanks for your help…

Kad K. wrote:

no problem in the console
$ script/console
Loading development environment (Rails 2.3.8)

require ‘vzaar’
=> []

but when using irb, I get a LoadError…
re ‘vzaar’
LoadError: no such file to load – vzaar
from (irb):1:in `require’
from (irb):1

what’s wrong with irb ???

Did you try doing:

require ‘rubygems’

before the require of vzaar ? Rails probably does it for you already.

Perry S. wrote:

Kad K. wrote:

no problem in the console
$ script/console
Loading development environment (Rails 2.3.8)

require ‘vzaar’
=> []

but when using irb, I get a LoadError…
re ‘vzaar’
LoadError: no such file to load – vzaar
from (irb):1:in `require’
from (irb):1

what’s wrong with irb ???

Did you try doing:

require ‘rubygems’

before the require of vzaar ? Rails probably does it for you already.

Hey Kad, did the hint from Perry sort out the problem? You can also use
http://help.vzaar.com/ in case you needed any help with the vzaar gem
itself.