From: Arno Nyhm Date: 2011-08-06T05:08:20+09:00 Subject: 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 1.8.7 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' Shoes.app( :width => 250, :height => 250 ) do para 'Hello, world!' end (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:in `load_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:in `load_modules' from C:/Ruby187/lib/ruby/1.8/irb/init.rb:21:in `setup' from C:/Ruby187/lib/ruby/1.8/irb.rb:54:in `start' from C:/Ruby187/bin/irb:13 Now the system DOES tell me that green_shoes is known, however: c:\temp>gem which green_shoes C:/Ruby187/lib/ruby/gems/1.8/gems/green_shoes-0.255.0/lib/green_shoes.rb So I tried to hint it to the correct path: c:\temp>set LOADPATH loadpath=C:/Ruby187/lib/ruby/gems/1.8/gems/green_shoes-0.255.0/lib/ ..but still to no avail. So what am I doing wrong?? Many thanks! -- Posted via http://www.ruby-forum.com/.