问题
i am getting this error whenever i try to load a ruby gem
/home/hilarl/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- twit
ter (LoadError)
from /home/hilarl/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from sample.rb:2:in `<main>'
can you please help?
回答1:
You missed to use a ruby, in normal console first run:
rvm use 1.9.3
If it's in a script then instead use following path to ruby:
$rvm_path/wrappers/ruby-1.9.3-p194/ruby
You should get also the minimal basics of using RVM:
- screencast: http://screencasts.org/episodes/how-to-use-rvm
- cheatsheet: http://cheat.errtheblog.com/s/rvm/
- rvm site: https://rvm.io/
来源:https://stackoverflow.com/questions/10679196/i-cant-load-ruby-gems