我尝试按照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 列表输出:
$ 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]
你对哪里出了问题有什么建议吗?