通过rvm安装jruby后运行rails服务器时出错
我使用 rvm 安装了 jruby,现在当我使用 rvm 切换到 ruby-1.9.2 并尝试在不同的项目中运行我的 Rails 服务器时,出现以下错误:
LoadError: no such file to load -- 1.8/http11
require at org/jruby/RubyKernel.java:1038
require at /Users/thaiyoshi/.rvm/gems/ruby-1.9.2-p290/gems/activesupport--3.0.10/lib/active_support/dependencies.rb:239
我可以发布完整的错误,但它是重复的,并抱怨 RubyKernel .java:1038 用于 activesupport、bundler、mongrel 和 Railties。
这是我正在使用的红宝石:
jruby-1.6.4 [ darwin-x86_64-java ]
=> ruby-1.9.2-p290 [ x86_64 ]
有什么建议吗?我应该做些什么来避免此类冲突?
I installed jruby using rvm and now when I use rvm to switch to using ruby-1.9.2 and try running my rails server in a different project I get the following errors:
LoadError: no such file to load -- 1.8/http11
require at org/jruby/RubyKernel.java:1038
require at /Users/thaiyoshi/.rvm/gems/ruby-1.9.2-p290/gems/activesupport--3.0.10/lib/active_support/dependencies.rb:239
I can post the full error but it is repetitive and complains about RubyKernel.java:1038 for activesupport, bundler, mongrel, and railties.
Here are the rubies I'm using:
jruby-1.6.4 [ darwin-x86_64-java ]
=> ruby-1.9.2-p290 [ x86_64 ]
Any suggestions? Are there things that I should be doing to avoid these types of conflicts?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许您还没有为您的 JRuby 环境提供所有正确的 gem。您是否记得运行“
bundle install
”?Perhaps you don't yet have all the correct gems available for your JRuby environment. Did you remember to run "
bundle install
" ?