我可以愉快地使用Ruby gem mongrel使用脚本/服务器启动我的Rails 2.x应用程序.
细节:
哪个铁轨
/选择/ local / bin目录/轨
哪个mongrel_rails
/选择/ local / bin目录/ mongrel_rails
哪个宝石
/选择/ local / bin目录/宝石
但是我刚刚用Ruby 1.8.7添加了RVM并安装了我的所有宝石,包括mongrel但是当我尝试使用脚本/服务器启动我的rails应用程序时,我现在得到:
没有要加载的文件 – mongrel_rails(MissingSourceFile)
运行一些检查我发现:
哪个mongrel_rails
/Users/daniellewis/.rvm/gems/ruby-1.8.7-p334@nacore/bin/mongrel_rails
哪个铁轨
/Users/daniellewis/.rvm/gems/ruby-1.8.7-p334@nacore/bin/rails
哪个宝石
/Users/daniellewis/.rvm/rubies/ruby-1.8.7-p334/bin/gem
.profile有:
export PATH = / opt / local / bin:/ opt / local / sbin:/usr/local / MysqL / bin:$PATH
[[-s“$HOME / .rvm / scripts / rvm”]]&& . “$HOME / .rvm /脚本/ RVM”
(我正在使用macports)
有关为什么脚本/服务器无法找到mongrel_rails的任何想法?我只能猜测它与.profile有关,但我不确定是什么.
谢谢!
解决方法
原文地址:https://www.jb51.cc/ruby/270503.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。