From: Pito Salas Date: 2009-04-25T05:49:08+09:00 Subject: Odd Ruby/Rubygems/gem path problem I've spent too much time trying to solve this little problem. I wonder if you can help: I work on a Mac OS X Leopard. I recently started using a different account as my primary login. Things that shouldnt have, started breaking. I suspect permissions, file ownership etc problems. But check this out # I am using shoulda as a random example gem, this example has nothing # to do specifically with shoulda # see that I do have shoulda installed: $ gem which shoulda (checking gem thoughtbot-shoulda-2.10.1 for shoulda) /opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda.rb # see that I have Ruby automatically searching for gems $ echo $RUBYOPT rubygems # see that my ruby install works for a trivial case $ ruby -e "puts 1" 1 # see that it refuses to see the shoulda gem from the command line $ ruby -rshoulda -e "puts 1" ruby: no such file to load -- shoulda (LoadError) $ ruby -rubygems -rshoulda -e "puts 1" ruby: no such file to load -- shoulda (LoadError) $ ruby -rubygems -rshoulda -e "puts 1" #see this trivial program: $ cat test1.rb require 'rubygems' require 'shoulda' puts `gem which shoulda`/mydev/graphicsplay # does work as expected $ ruby test1.rb (checking gem thoughtbot-shoulda-2.10.1 for shoulda) /opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda.rb /mydev/graphicsplay$ ### Any ideas would be greatly appreciated. It's probably something stupid I am just missing it... Thanks! Pito -- Posted via http://www.ruby-forum.com/.