Require load error

Hi,

I installed 'hpricot' and 'wx' (wxruby) libraries with gem command and when
I try to start a program which uses those two libraries I get 'require - no
such file to load - hpricot (or wx)'. I have ruby 1.9.0. developer version
installed on Windows.
What is the problem here ?

Thanks.

Haris Bogdanovic wrote:

Hi,

I installed 'hpricot' and 'wx' (wxruby) libraries with gem command and

when

I try to start a program which uses those two libraries I get 'require

- - no

such file to load - hpricot (or wx)'. I have ruby 1.9.0. developer

version

installed on Windows.
What is the problem here ?

require 'rubygems' first.

- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan
Blog: http://justarubyist.blogspot.com

Don't stop with your first draft.
~ - The Elements of Programming Style (Kernighan & Plaugher)

Maybe, you need require 'rubygems' first.

require 'rubygems'
require 'hpricot'

Todd

ยทยทยท

On Tue, May 13, 2008 at 4:05 PM, Haris Bogdanovic <fbogdanovic@xnet.hr> wrote:

Hi,

I installed 'hpricot' and 'wx' (wxruby) libraries with gem command and when
I try to start a program which uses those two libraries I get 'require - no
such file to load - hpricot (or wx)'. I have ruby 1.9.0. developer version
installed on Windows.
What is the problem here ?

Thanks.

"Phillip Gawlowski" <cmdjackryan@googlemail.com> wrote in message
news:482A0BB2.6030001@gmail.com...

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Haris Bogdanovic wrote:
> Hi,
>
> I installed 'hpricot' and 'wx' (wxruby) libraries with gem command and
when
> I try to start a program which uses those two libraries I get 'require
- - no
> such file to load - hpricot (or wx)'. I have ruby 1.9.0. developer
version
> installed on Windows.
> What is the problem here ?

require 'rubygems' first.

- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan
Blog: http://justarubyist.blogspot.com

Don't stop with your first draft.
~ - The Elements of Programming Style (Kernighan & Plaugher)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgqC7AACgkQbtAgaoJTgL8T3gCfYzH+Fmd7BGipXvx/kTuXEc+1
iAAAoIYu89dxCWK9tmlwWGzzaCFSV2Ct
=evKQ
-----END PGP SIGNATURE-----

I have the line:
require 'rubygems'
at the begining of the program.

This program worked before but I uninstalled and then installed ruby 1.8.6
few times and now I have ruby 1.9.0. developer version and it still doesn't
work. When I was installing those two gems it didn't ask me which version to
install (numbered list) like it did before. Maybe this tells something where
the problem might be.

Haris Bogdanovic wrote:

"Phillip Gawlowski" <cmdjackryan@googlemail.com> wrote in message
news:482A0BB2.6030001@gmail.com...
Haris Bogdanovic wrote:
> Hi,
>
> I installed 'hpricot' and 'wx' (wxruby) libraries with gem command and
when
> I try to start a program which uses those two libraries I get 'require
- no
> such file to load - hpricot (or wx)'. I have ruby 1.9.0. developer
version
> installed on Windows.
> What is the problem here ?

require 'rubygems' first.

I have the line:
require 'rubygems'
at the begining of the program.

This program worked before but I uninstalled and then installed ruby

1.8.6

few times and now I have ruby 1.9.0. developer version and it still

doesn't

work. When I was installing those two gems it didn't ask me which

version to

install (numbered list) like it did before. Maybe this tells something

where

the problem might be.

Then the Ruby version you are launching doesn't have the gems installed.
Find out which Ruby interpreter launches, and install the gems for it.

Also: Newer RubyGems versions detect your platform automagically.

(And AFAIK, Ruby 1.9 includes RubyGems as part of the STDLIB.)

- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan
Blog: http://justarubyist.blogspot.com

At the back of the roadhouse they've got some bungalows...
and that's for the people who like to go down slow...
let it roll, baby, roll ... all night long.
~ -- Jim Morrison