From: Pito Salas Date: 2009-08-19T03:47:59+09:00 Subject: Re: gem installation oddity Eric Hodel wrote: I don't think I exactly followed this. But in the meanwhile I think I have figured out what was tripping me up. The sample apps that come with wxruby begin with a line that looks like this: #!/usr/bin/env ruby # wxRuby2 Sample Code. Copyright (c) 2004-2008 wxRuby development team # Freely reusable code: see SAMPLES-LICENSE.TXT for details Which, the way I was running it, led it to look at the ruby that comes with OSX rather than the one I have designated as primary, which is actually in /opt/local/... My gem install is going into the primary ruby install so when the sample app runs, it's not finding it. So removing that first line makes the thing work. It still doesn't explain to me why this is happening, but it might be, as the first response said, a bug in "gem which". It's a bit worrysome, but for the moment it's not holding me up: $ 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... $ gem which wxruby Can't find ruby library file or shared library wxruby $ By the way, you asked: > Is there even a wxruby in the gem? The code doesn't look for it; here's what it looks like: #!/usr/bin/env ruby # wxRuby2 Sample Code. Copyright (c) 2004-2008 wxRuby development team # Freely reusable code: see SAMPLES-LICENSE.TXT for details begin require 'rubygems' rescue LoadError end require 'wx' -- Posted via http://www.ruby-forum.com/.