I'm trying to run a ruby file which imports a gem. The ya2yaml gem is installed, yet somehow it is not found:
$ cat delme.rb require 'rubygems' require 'ya2yaml' $ ruby delme.rb /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- ya2yaml (LoadError) from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' from delme.rb:2
I installed the gem using:
sudo gem install ya2yamland I know that the gem is actually installed:
$ gem list --local | grep ya2yaml ya2yaml (0.26)
Also, the following works from a rails program I just downloaded:
sudo rake gemsHowever the following fails:
rake gemsWhich leads me to think that there may be a permissions problem somewhere.
Why can't the gem be found? What can I do to diagnose this?
Thanks!