Passenger / REE 找不到轨道,它在 $PATH 中,怎么办?
我在 Debian Lenny 上全新安装了 Ruby EE (1.8.6-20090610) 和 Passenger (2.2.5)。 REE 安装在 /opt/ruby-enterprise 中,并通过 /etc/environment 添加到所有用户的 $PATH 中,并将 PassengerDefaultUser 设置为 root。问题是加载 Rails 应用程序时,Passenger 错误表明 Rails 2.3.3 gem 丢失。然而,它是与 Passenger 和 Rails -v 一起安装的,因为 root 说它在那里。可能出了什么问题?
I've got a fresh install of Ruby EE (1.8.6-20090610) and Passenger (2.2.5) on Debian Lenny. REE is installed in /opt/ruby-enterprise and it is added to the $PATH of all users through /etc/environment, and PassengerDefaultUser is set to root. The problem is when loading a rails app, the Passenger error says the rails 2.3.3 gem is missing. However it was installed with Passenger and a rails -v as root says it's there. What could be going wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
发现错误:
PassengerRuby /usr/bin/ruby1.8
应该是
PassengerRuby /opt/ruby-enterprise/bin/ruby
Found the error:
PassengerRuby /usr/bin/ruby1.8
should have been
PassengerRuby /opt/ruby-enterprise/bin/ruby