Rails/Passenger:没有要加载的文件——bundler
我有一个运行旧版本 Rails (2.2.2) 和 Passenger 的应用程序,我使用 Ruby Enterprise Edition 1.8.7 启动并运行该应用程序。然而,我很快发现旧版本的 Rails 和 Ruby 1.8.7 之间存在一些不兼容性,并决定降级到 REE 1.8.6。但是,现在应用程序无法启动,并出现 LoadError:
no such file to load -- bundler
我假设某些路径设置不正确,但我不确定在哪里查找。有什么建议吗?
I have an application running an old version of Rails (2.2.2) and Passenger that I got up and running using Ruby Enterprise Edition 1.8.7. However, I soon found there were some incompatibilities between older versions of Rails and Ruby 1.8.7, and decided to downgrade to REE 1.8.6. However, now the application fails to start with a LoadError
:
no such file to load -- bundler
I assume some path is not set correctly, but I'm not sure where to look. Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
经过多次用头撞墙后,我意识到这是因为 /opt/ruby-enterprise-... 中的文件不是组可读的(所以我认为运行 Apache 的用户没有访问权限)。
After much banging my head against the wall, I realized it was because files in /opt/ruby-enterprise-... weren't group readable (so the user running Apache didn't have access, I assume).
我有同样的错误,但有不同的解决方案。
在我的deploy.rb文件中有一个像这样的块:
我将这些路径指向新安装的ruby(在服务器上),并且它起作用了。
I had the same error, but a different solution.
In my deploy.rb file is a block like:
I pointed these paths to the new install of ruby (on the server), and it worked.