我尝试按heroku devcenter中所述使用
安装Treasure Data heroku cli插件(td)$ heroku plugins:install https://github.com/treasure-data/heroku-td.git
命令但失败并显示以下错误消息:
Installing heroku-td... failed
! Unable to load plugin heroku-td.
! Search for help at: https://help.heroku.com
Error: 'td' gem is missing. Please install td: gem install td (RuntimeError)
Backtrace: /home/istvan/.heroku/plugins/heroku-td/init.rb:4:in `rescue in <top (required)>'
/home/istvan/.heroku/plugins/heroku-td/init.rb:1:in `<top (required)>'
/usr/local/heroku/lib/heroku/plugin.rb:66:in `load'
/usr/local/heroku/lib/heroku/plugin.rb:66:in `load_plugin'
/usr/local/heroku/lib/heroku/command/plugins.rb:46:in `block in install'
/usr/local/heroku/lib/heroku/helpers.rb:232:in `action'
/usr/local/heroku/lib/heroku/command/plugins.rb:44:in `install'
/usr/local/heroku/lib/heroku/command.rb:193:in `run'
/usr/local/heroku/lib/heroku/cli.rb:25:in `start'
/usr/bin/heroku:26:in `<main>'
Command: heroku plugins:install https://github.com/treasure-data/heroku-td.git
Plugins: heroku-td
Version: heroku-toolbelt/2.30.3 (i686-linux) ruby/1.9.3
我已经使用
在本地计算机上安装了td$ gem install td
参见宝石列表输出:
$ gem list
*** LOCAL GEMS ***
bundler (1.1.5)
fluent-logger (0.4.3)
hirb (0.7.0)
json (1.7.5)
msgpack (0.4.7)
rake (0.9.2.2)
rubygems-bundler (1.0.6)
rvm (1.11.3.5)
td (0.10.38)
td-client (0.8.22)
td-logger (0.3.14)
thor (0.16.0)
yajl-ruby (1.1.0)
事实上,td命令在我的本地机器上运行:
$ td
usage: td [options] COMMAND [args]
这是我的heroku版本和ruby版本:
$ heroku -v
heroku-toolbelt/2.30.3 (i686-linux) ruby/1.9.3
$ ruby -v
ruby 1.9.2p320 (2012-04-20 revision 35421) [i686-linux]
你对错误有什么建议吗?
答案 0 :(得分:0)
当您安装了td
gem时,Heroku Toolbelt提供的heroku
命令无法使用它。
@geemus描述了GitHub问题中的问题:https://github.com/heroku/heroku/issues/568
尝试通过heroku
gem安装TD heroku插件,使用Toolbelt安装 not 。我不是肯定的,但试试
heroku
添加到您的Gemfile bundle install
bundle exec heroku plugins:install ...
TD插件上有outstanding issue兼容Toolbelt。