![](/img/trans.png)
[英]After pushng my Rails up to Openshift I get error: “Could not find rake-10.5.0 in any of the sources”
[英]Why do I get “Could not find mail-2.2.9.1 in any of the sources” after updated Ruby and Rails?
我最近通过RVM将Ruby版本更新为1.9.2。 (而且,启动终端时我必须rvm use 1.9.2
EVERY TIME命令吗?)。
我删除了一些我不应该拥有的Rails文件,因此我重新安装了Rails。 但是,尝试生成控制器时仍然出现此错误:
在任何来源中都找不到mail-2.2.9.1
尝试运行
bundle install
。
运行bundle install
可以暂时解决问题,但是在启动另一个项目时出现相同的错误。
您需要使用rvmrc文件。 它告诉rvm使用哪个Ruby版本/ gemset。 读:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.