Trying to require nokogiri

Hi everyone,

I have installed nokogiri for parsing
and html document but I get an error when I
require it. It doesn't find it.

LoadError: no such file to load — nokogiri

method require in test21.rb at line 1
at top level in test21.rb at line 1

but I do have the gem installed, I am not
sure why it isn't finding it.

gem list | grep nokogiri
nokogiri (1.4.4)

Any help appreciated.

Ted.

···

--
Posted via http://www.ruby-forum.com/.

require 'rubygems'
require 'nokogiri'

···

On Sat, Mar 26, 2011 at 9:48 AM, Ted Flethuseo <flethuseo@gmail.com> wrote:

I have installed nokogiri for parsing
and html document but I get an error when I
require it. It doesn't find it.

method require in test21.rb at line 1

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan

Hmm. Thanks that was easy.. I have never had to do that before
for the other gems I have installed.

Hassan Schroeder wrote in post #989415:

···

On Sat, Mar 26, 2011 at 9:48 AM, Ted Flethuseo <flethuseo@gmail.com> > wrote:

I have installed nokogiri for parsing
and html document but I get an error when I
require it. It doesn't find it.

method require in test21.rb at line 1

require 'rubygems'
require 'nokogiri'

--
Posted via http://www.ruby-forum.com/\.