Forum: Ruby Error with 'require'

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
64fe16be1acb2e31e2af4091b599685a?d=identicon&s=25 Kris Thomsen (kristho)
on 2009-04-13 03:18
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?
Aafa8848c4b764f080b1b31a51eab73d?d=identicon&s=25 Phlip (Guest)
on 2009-04-13 03:26
(Received via mailing list)
Kris Thomsen wrote:

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

require 'rubygems' first.
64fe16be1acb2e31e2af4091b599685a?d=identicon&s=25 Kris Thomsen (kristho)
on 2009-04-13 03:33
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 :)
This topic is locked and can not be replied to.