我使用heroku网站上的说明安装了heroku。当我运行heroku登录(或任何其他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>'
答案 0 :(得分:0)
首先尝试卸载导致与CLI冲突的heroku gem
gem uninstall heroku
如果heroku CLI工作正常,请按照此页面上的说明再次安装它https://toolbelt.heroku.com/