您已经激活了 rake 0.9.0,但是您的 Gemfile 需要 rake 0.8.7 [英] You have already activated rake 0.9.0, but your Gemfile requires rake 0.8.7

查看:47
本文介绍了您已经激活了 rake 0.9.0,但是您的 Gemfile 需要 rake 0.8.7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行 rails 项目,我明白了

I'm trying to run rails project, I get

Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.

如果我这样做:捆绑安装"

If I do: "bundle install"

但是我要了

You have already activated rake 0.9.0, but your Gemfile requires rake 0.8.7

一边做

rake db:migrate

推荐答案

感谢 Dobry Den,干杯伙计.但我还没有做更多的事情.这是解决方案(对我有用).我已经添加了

I thank to Dobry Den, cheers dude. but little more I had to do. here is solution (works for me). I had added

gem 'rake','0.8.7'

在 Gemfile 上,它不存在,但我的新版本 rails 会自动安装 rake(0.9.0).

on Gemfile, which was not there, but my new version of rails automatically install rake(0.9.0).

在我通过 gem uninstall rake 删除 rake0.9.0 之后在执行 bundle update rake 之后,我可以创建和迁移数据库.

after I had delete rake0.9.0 by gem uninstall rake and after doing bundle update rake , I can create and migrate database.

这篇关于您已经激活了 rake 0.9.0,但是您的 Gemfile 需要 rake 0.8.7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆