I cant load Ruby Gems

Deadly 提交于 2019-12-11 07:16:15

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!