您已经激活了rack 1.3.2,但是您的Gemfile 需要rack 1.2.3.考虑使用 bundle exec [英] You have already activated rack 1.3.2, but your Gemfile requires rack 1.2.3. Consider using bundle exec

查看:59
本文介绍了您已经激活了rack 1.3.2,但是您的Gemfile 需要rack 1.2.3.考虑使用 bundle exec的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试运行我的应用程序时遇到问题:

I've got a problem while i try to run my app :

You have already activated rack 1.3.2, but your Gemfile requires rack 1.2.3. Consider using bundle exec.

我阅读了很多关于这种错误的信息,但没有找到任何对我有用的解决方案

I read a lot about this kind of error, but i did not find any solution that worked for me

  • 我已经删除了我的 Gemfile.lock 并按照建议重新运行包 此处
  • 我已经使用了最新版本的乘客 (3.0.8) - 按照建议 这里
  • 在我的情况下不能使用 bundle exec rake 技巧

提前谢谢您

推荐答案

运行 bundle install --binstubs 然后你会在你的应用程序根目录中得到 bin 目录应用所需的可执行文件.

Run bundle install --binstubs and you'll get bin directory in your application root with all executables needed by app.

然后您需要将此目录添加到路径和最佳位置 - 如果您使用 RVM,则为 .rvmrc.

Then you need to add this dir to path and best place to do it - .rvmrc if you use RVM.

[ -d './bin' ] && export PATH=`pwd`/bin:$PATH

或者直接从您的应用根目录运行 ./bin/{rake|rails|etc}.

or just run ./bin/{rake|rails|etc} from your app root.

这篇关于您已经激活了rack 1.3.2,但是您的Gemfile 需要rack 1.2.3.考虑使用 bundle exec的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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