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: - RUBYGEMS VERSION: 1.3.7 - RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [i686- darwin10.3.0] - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8 - RUBY EXECUTABLE: /usr/local/bin/ruby - EXECUTABLE DIRECTORY: /usr/local/bin - RUBYGEMS PLATFORMS: - ruby - x86-darwin-10 - GEM PATHS: - /usr/local/lib/ruby/gems/1.8 - /usr/lib/ruby/gems/1.8 - /Users/yves/.gem/ruby/1.8/gems - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - "gempath" => ["/usr/lib/ruby/gems/1.8", "/Users/yves/.gem/ruby/ 1.8/gems"] - :sources => ["RubyGems.org | your community gem host, "http:// gems.github.com/", "RubyGems.org | your community gem host, "http://gems.github.com", "http://gems.github.com"] - REMOTE SOURCES: - http://gems.rubyforge.org/ - http://gems.github.com/ - http://gemcutter.org/ - http://gems.github.com
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...