gems are not found
Closed this issue · 4 comments
anildigital commented
When I run a ruby code which has
require 'rubygems' require 'rack'
Get following error when run the code
/home/abc/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- rack (LoadError) from /home/abc/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from /home/abc/code/rack/simple.rb:3 Compilation exited abnormally with code 1 at Fri May 14 13:19:25
It says 'rack' gem not found .. but it's there
$ gem list rack **\* LOCAL GEMS *** rack (1.0.1)
I am using rvm-use-default
senny commented
are you using system ruby as default? rvm.el is currently not working correctly with system ruby.
anildigital commented
$ rvm list rvm Rubies jruby-1.4.0 [ [i386-java] ] jruby-1.5.0 [ [i386-java] ] jruby-1.5.0.RC3 [ [i386-java] ] ruby-1.8.7-p249 [ i386 ] ruby-1.9.1-p378 [ i386 ] Default Ruby (for new shells) ruby-1.8.7-p249 [ i386 ]
senny commented
There was a problem with the handling of the default gemset per ruby interpreter. I mixed the concept of the default gemset with the global gemset. I just pushed a fix. It would bee cool if you could test your code again and give me feedback.
anildigital commented
Updated rvm.el to head. Now it works fine. Gems are getting loaded as per Ruby version used. Thanks.