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

相关文章

validates:conclusion,:presence=>true,:inclusion=>{...
一、redis集群搭建redis3.0以前,提供了Sentinel工具来监控各...
分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣...
上一篇博文 ruby传参之引用类型 里边定义了一个方法名 mo...
一编程与编程语言 什么是编程语言? 能够被计算机所识别的表...
Ruby类和对象Ruby是一种完美的面向对象编程语言。面向对象编...