On Aug 18, 2009, at 08:43, Pito Salas wrote: > I have been totally puzzled by what I think is a misconfiguration of > my > gem environment. I've read and looked and experimented and tried to > solve this. Maybe you can help.. Here's the top level symptom. I > install > a gem, and then do a 'which' and gem says it can't find it: > > sudo gem install wxruby > Successfully installed wxruby-2.0.0-universal-darwin-9 > 1 gem installed > Installing ri documentation for wxruby-2.0.0-universal-darwin-9... > Installing RDoc documentation for wxruby-2.0.0-universal-darwin-9... > /opt/local/lib/ruby/gems/1.8$ gem which wxruby > Can't find ruby library file or shared library wxruby > /opt/local/lib/ruby/gems/1.8$ > > This is not a peculiarity with this particular gem. There are others > in > this odd state too. Is there even a wxruby in the gem? gem contents -l wxruby will tell you if you've got the gem installed You can also check from the .gem file without installing: $ gem fetch wxruby Downloaded wxruby-2.0.0-universal-darwin-9 $ gem spec wxruby-2.0.0-universal-darwin-9.gem files | grep lib - lib/wx [...] - lib/wx.rb [...] Nope. Try: require 'wx' instead. Hey look! It's even described right in the Getting Started tutorial: http://wxruby.rubyforge.org/wiki/wiki.pl?Getting_Started Which is linked off the homepage! $ gem list -dr wxruby *** REMOTE GEMS *** wxruby (2.0.0, 1.9.7, 1.9.3, 1.9.2) Platforms: 1.9.2: i686-darwin8.8.2, powerpc-darwin8.10.0 1.9.3: universal-darwin 1.9.7: i386-mswin32 2.0.0: universal-darwin-9, x86-linux, x86-mingw32, x86- mswin32-60, x86_64-linux Author: wxRuby development team Rubyforge: http://rubyforge.org/projects/wxruby Homepage: http://wxruby.org/ Ruby interface to the wxWidgets GUI library