我不能加载Ruby宝石 [英] I cant load Ruby Gems
本文介绍了我不能加载Ruby宝石的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我每次尝试加载红宝石时都会收到此错误消息。
ruby-1.9.3-p194 / lib / ruby / site_ruby / 1.9.1 / rubygems / custom_require.rb:36:在'require'中:无法加载这样的文件 - twitter(LoadError)
从/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:在< main>'
你可以帮忙吗?
$ b $code> rvm use 1.9.3
如果在脚本中,则使用以下路径ruby:
$ rvm_path / wrappers / ruby-1.9.3-p194 / ruby
您还应该了解使用RVM的基本知识:
- screencast: htt p://screencasts.org/episodes/how-to-use-rvm
- cheatsheet: http://cheat.errtheblog.com/s/rvm/
- rvm网站: https://rvm.io/
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?
解决方案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/
这篇关于我不能加载Ruby宝石的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文