通过rvm安装jruby后运行rails服务器时出错

发布于 2024-12-08 09:53:20 字数 588 浏览 2 评论 0原文

我使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

々眼睛长脚气 2024-12-15 09:53:20

也许您还没有为您的 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" ?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文