From: ZHANG Yin Date: 2007-06-06T16:24:28+09:00 Subject: Re: cannot load installed gems Eric Hodel wrote: > On Jun 5, 2007, at 18:53, ZHANG Yin wrote: > >> "require 'rails'"(I don't know whether it'll work. Just to have a try) >> in irb won't work too, just like hpricot. >> >> "ri hpricot" won't work too. > > ri Hpricot Oh! I see, ri Hpricot works. > >> I can find hpricot and rails under '/usr/lib/ruby/gems/1.8/gems'. >> But it >> seems the ruby won't load libs in it. > > What does `gem env` say? > > What does `gem list` say? gem env: RubyGems Environment: - VERSION: 0.9.2 (0.9.2) - INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8 - GEM PATH: - /usr/lib/ruby/gems/1.8 - REMOTE SOURCES: - http://gems.rubyforge.org gem list: *** LOCAL GEMS *** actionmailer (1.3.3) Service layer for easy email delivery and testing. actionpack (1.13.3) Web-flow and rendering framework putting the VC in MVC. actionwebservice (1.2.3) Web service support for Action Pack. activerecord (1.15.3) Implements the ActiveRecord pattern for ORM. activesupport (1.4.2) Support and utility classes used by the Rails framework. hpricot (0.5.145) a swift, liberal HTML parser with a fantastic library rails (1.2.3) Web-application framework with template engine, control-flow layer, and ORM. rake (0.7.3) Ruby based make-like utility. sources (0.0.1) This package provides download sources for remote gem installation but "require 'hpricot'" won't work~~ -- Posted via http://www.ruby-forum.com/.