【问题标题】:I'm getting an error getting the heroku cli properly installed正确安装 heroku cli 时出错
【发布时间】:2012-07-20 04:59:22
【问题描述】:

我按照 heroku 网站上的说明安装了 heroku。当我运行 heroku login (或任何其他 heroku 命令,我得到下面的输出)。目录/home/jsltaic/.rvm/rubies/ruby-1.9.3-p194/lib 不存在,我怀疑这是问题的一部分。

jsltaic@Ubuntu1204:~$ heroku login
/home/jsltaic/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- readline (LoadError)
    from /home/jsltaic/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /home/jsltaic/.rvm/gems/ruby-1.9.3-p194@global/gems/heroku-2.29.0/lib/heroku/command/run.rb:1:in `<top (required)>'
    from /home/jsltaic/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /home/jsltaic/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /home/jsltaic/.rvm/gems/ruby-1.9.3-p194@global/gems/heroku-2.29.0/lib/heroku/command.rb:15:in `block in load'
    from /home/jsltaic/.rvm/gems/ruby-1.9.3-p194@global/gems/heroku-2.29.0/lib/heroku/command.rb:14:in `each'
    from /home/jsltaic/.rvm/gems/ruby-1.9.3-p194@global/gems/heroku-2.29.0/lib/heroku/command.rb:14:in `load'
    from /home/jsltaic/.rvm/gems/ruby-1.9.3-p194@global/gems/heroku-2.29.0/lib/heroku/cli.rb:24:in `start'
    from /home/jsltaic/.rvm/gems/ruby-1.9.3-p194@global/gems/heroku-2.29.0/bin/heroku:16:in `<top (required)>'
    from /home/jsltaic/.rvm/gems/ruby-1.9.3-p194@global/bin/heroku:19:in `load'
    from /home/jsltaic/.rvm/gems/ruby-1.9.3-p194@global/bin/heroku:19:in `<main>'
    from /home/jsltaic/.rvm/gems/ruby-1.9.3-p194@global/bin/ruby_noexec_wrapper:14:in `eval'
    from /home/jsltaic/.rvm/gems/ruby-1.9.3-p194@global/bin/ruby_noexec_wrapper:14:in `<main>'

【问题讨论】:

    标签: heroku installation


    【解决方案1】:

    首先尝试卸载导致与 CLI 冲突的 heroku gem

    gem uninstall heroku
    

    如果 heroku CLI 工作正常,请尝试,如果它没有按照此页面上的说明再次安装它https://toolbelt.heroku.com/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-01-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多