问题描述
您已经启动了rake 10.0.3,但是你的Gemfile需要rake 0.9.6。使用bundle exec可以解决这个问题。
我也试过这个:
gem uninstall rake -v 10.0.3
但是我得到以下消息:
INFO:未安装gemrake
bundle update rake修复了命令行问题。
但是我仍然得到已激活的rake错误当我通过命令行运行rspec时。
我不知道如何解决这个问题。我想运行0.9.6
我需要更新gem文件。我无法更新它,并将其推送到远程回购,因为这是一个共享回购每个人都将使用。
如果您正在使用您的项目的gemset在RubyMine中试用:
转至设置
并选择 Ruby SDK和Gems
来自左侧窗格中的项目设置
部分。
在右边窗格中找到宝石列表中的耙子,您可能会看到10.0.3&列出了0.9.6。检查忽略全局gempath
复选框,您现在应该只看到列出的0.9.6版rake。
点击确定,应该这样做。
When I run rspec from my rubymine editor,I get this error:
You have already activated rake 10.0.3, but your Gemfile requires rake 0.9.6. Using bundle exec may solve this.
I also tried this:
gem uninstall rake -v 10.0.3
But I get the following message:
INFO: gem "rake" is not installed
bundle update rake fixes the issue for the command line.
But I still get the "already activated rake error" when i run rspec through command line.I am not sure how to resolve this. I want to run 0.9.6Do i have to update the gem file. I cannot update it and push it to remote repo because this is a shared repo everybody will be using.
If you are using a gemset for your project try this in RubyMine:
Go to Settings
and select Ruby SDK and Gems
from the Project Settings
section in the left-hand pane.In the right-hand pane find rake in the list of gems and you'll probably see both 10.0.3 & 0.9.6 listed. Check the Ignore global gempath
check-box and you should now see just the rake 0.9.6 version listed.Hit OK and that should do it.
这篇关于rubymine错误:您已经启动了rake 10.0.3,但您的Gemfile需要rake 0.9.6。使用bundle exec可以解决这个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!