[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Error with 'require'

Kris Thomsen

4/13/2009 1:19:00 AM

Hi!

I'm new to Ruby.

I try to make a "require 'nokogiri", but get this error:

nationalBanken.rb:1:in `require': no such file to load -- nokogiri
(LoadError)
from nationalBanken.rb:1

I have tried to install nokogiri both from gems and from a Fedora 10
package: rubygem-nokogiri.
I get the same error when I tried with hpricot.

Anyone who can help?
--
Posted via http://www.ruby-....

2 Answers

Phlip

4/13/2009 1:20:00 AM

0

Kris Thomsen wrote:

> nationalBanken.rb:1:in `require': no such file to load -- nokogiri
> (LoadError)
> from nationalBanken.rb:1

require 'rubygems' first.

Kris Thomsen

4/13/2009 1:33:00 AM

0

Phlip wrote:
> Kris Thomsen wrote:
>
>> nationalBanken.rb:1:in `require': no such file to load -- nokogiri
>> (LoadError)
>> from nationalBanken.rb:1
>
> require 'rubygems' first.

Thanks!
That worked perfect :)
--
Posted via http://www.ruby-....