这些Ruby版本中存在`heroku'命令: [英] The `heroku' command exists in these Ruby versions:
问题描述
ruby 2.0.0-dev
的ruby版本时,出现此错误。 rbenv:heroku:找不到命令
这些Ruby版本中存在`heroku'命令:
2.0.0-dev
我需要heroku与 ruby 1.9一起工作。 3
,我不认为Cedar 14支持该版本的红宝石。有人可以先解释一下,为什么我只允许使用带有 ruby 2.0.0-dev
的heroku,以及我如何安装一个支持 ruby 1.9.3 ?
问题是有两个 heroku
您系统上的可执行文件:一个在系统路径中,例如 / usr / local / bin / heroku
(由Toolbelt提供),另一个位于rbenv's因为Ruby 2.0.0-dev安装了herokugem。
因为rbenv的shim目录通常具有更高的优先级,所以它会阻止执行<$ c
解决方案是卸载herokugem的所有实例,并完全依赖于Toolbelt for all在命令行上使用heroku:
for v in`rbenv whence heroku`;做RBENV_VERSION = $ v gem uni heroku -ax; done
rbenv rehash
which heroku
I'm having major issues with the heroku toolbelt. I'm using the cedar 14 stack and when I am trying to use a ruby version that isn't ruby 2.0.0-dev
I get this error.
rbenv: heroku: command not found
The `heroku' command exists in these Ruby versions:
2.0.0-dev
I need heroku to be working with ruby 1.9.3
and I don't think cedar 14 supports that version of ruby. Can someone explain first, why I am only allowed to use heroku with ruby 2.0.0-dev
and also how I can install a older stack that supports ruby 1.9.3
?
The problem is that there are two heroku
executables on your system: one in system paths such as /usr/local/bin/heroku
(provided by Toolbelt), and one in rbenv's shims because Ruby 2.0.0-dev had "heroku" gem installed.
Because rbenv's shims directory usually have higher precedence, it will block invocation from ever executing the heroku
executable provided by Toolbelt.
The solution is to uninstall any instance of "heroku" gem and relying solely on Toolbelt for all heroku usage on the command line:
for v in `rbenv whence heroku`; do RBENV_VERSION=$v gem uni heroku -ax; done
rbenv rehash
which heroku
这篇关于这些Ruby版本中存在`heroku'命令:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!