Require 'green_shoes' -> ruby: no such file to load -- green_shoes (LoadError)

Sorry for this newbie’s question, but I’m stuck:

I installed the “green_shoes” gem on my Win7 PC (together with Ruby
that is) and everything looks fine at 1st glance: A “gem list” on the
cmd line results in this:

*** LOCAL GEMS ***

atk (1.0.0 x86-mingw32)
cairo (1.10.0 x86-mingw32)
columnize (0.3.4)
gdk_pixbuf2 (1.0.0 x86-mingw32)
glib2 (1.0.0 x86-mingw32)
green_shoes (0.255.0)
gtk2 (1.0.0 x86-mingw32)
linecache (0.46)
pango (1.0.0 x86-mingw32)
pkg-config (1.1.2)
rake (0.9.2)
rbx-require-relative (0.0.5)
ruby-debug (0.10.4)
ruby-debug-base (0.10.5.jb2 mswin32, 0.10.4)
ruby-debug-ide (0.4.17.beta5)
rubygems-update (1.8.7)

Now if I try to run a “hello world” like…

require ‘green_shoes’ :width => 250, :height => 250 ) do
para ‘Hello, world!’

(stored in c:\temp\testshoe.rb )

…RM tells me that it can’t locate the gem:

c:\temp>irb -rgreen_shoes testshoe.rb
C:/Ruby187/lib/ruby/1.8/irb/init.rb:254:in require': no such file to load -- green_shoes (LoadError) from C:/Ruby187/lib/ruby/1.8/irb/init.rb:254:inload_modules’
from C:/Ruby187/lib/ruby/1.8/irb/init.rb:252:in each' from C:/Ruby187/lib/ruby/1.8/irb/init.rb:252:inload_modules’
from C:/Ruby187/lib/ruby/1.8/irb/init.rb:21:in setup' from C:/Ruby187/lib/ruby/1.8/irb.rb:54:instart’
from C:/Ruby187/bin/irb:13

Now the system DOES tell me that green_shoes is known, however:

c:\temp>gem which green_shoes

So I tried to hint it to the correct path:

c:\temp>set LOADPATH

…but still to no avail. So what am I doing wrong??

Many thanks!

On Fri, Aug 5, 2011 at 10:08 PM, Arno N. [email protected] wrote:

c:\temp>irb -rgreen_shoes testshoe.rb

Try “irb -rubygems testshoe.rb” instead.

Phillip G. | |

A method of solution is perfect if we can forsee from the start,
and even prove, that following that method we shall attain our aim.
– Leibniz

Also, note that Green Shoes is only compatible with Ruby 1.9.2. It
won’t work on 1.8.7.

@Steve: You saved my day! -> I installed 1.9.2 in parallel, switched
over with “pik” and voila, everything works as it should!