微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

ruby-on-rails – RVM mongrel与RVM无法启动 – mongrel_rails(MissingSourceFile)

我在使用RVM和mongrel_rails方面遇到了麻烦,所以任何帮助都会非常感激.

我可以愉快地使用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有关,但我不确定是什么.

谢谢!

解决方法

问题是你在RVM中安装了一个比你的系统ruby更新版本的“gem”.降级你的宝石,它应该工作:
gem update --system 1.4.1

原文地址:https://www.jb51.cc/ruby/270503.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐