zhoulei984623 发表于 2011-10-09 21:06

用GEM安装Heroku客户端出错

http://devcenter.heroku.com/articles/heroku-command

我是按照上面的教程安装的

命令gem install heroku
成功执行完毕

执行heroku keys:add
的时候出现如下错误leozhou@ubuntu:~$ heroku keys:add
/home/leozhou/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- readline (LoadError)
        from /home/leozhou/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /home/leozhou/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.8.6/lib/heroku/command/run.rb:1:in `<top (required)>'
        from /home/leozhou/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /home/leozhou/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /home/leozhou/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.8.6/lib/heroku/command.rb:17:in `block in load'
        from /home/leozhou/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.8.6/lib/heroku/command.rb:16:in `each'
        from /home/leozhou/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.8.6/lib/heroku/command.rb:16:in `load'
        from /home/leozhou/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.8.6/bin/heroku:13:in `<top (required)>'
        from /home/leozhou/.rvm/gems/ruby-1.9.2-p290/bin/heroku:19:in `load'
        from /home/leozhou/.rvm/gems/ruby-1.9.2-p290/bin/heroku:19:in `<main>'新手,望大家指点一二:

环境如下:
ubuntu11.04
ruby:1.9.2
gems:1.8.10
java:1.7
git:1.7.4.1

zhoulei984623 发表于 2011-10-09 21:36

查了很多资料
貌似引起错误的真正原因是这个:
WARNING:RubyGems 1.2+ index not found for:
       

RubyGems will revert to legacy indexes degrading performance

zhoulei984623 发表于 2011-10-10 21:38

现在手动安装heroku成功了
安装路径是:~/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.8.6

其中目录~/.rvm/gems/ruby-1.9.2-p290/gems/中还包含乐heroku依赖的gem库如下:
addressable-2.2.6heroku-2.8.6launchy-2.0.5mime-types-1.16rest-client-1.6.7rubyzip-0.9.4term-ansicolor-1.0.6

现在运行heroku出现如下错误
internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- rest_client (LoadError)

可rest_client明明已经安装在~/.rvm/gems/ruby-1.9.2-p290/gems/下了啊,是因为环境变量吗?可是我export一下还是不行?到底什么原因?望大家指点

2gua 发表于 2011-10-12 09:11

没安装过这东西。

kevinbin 发表于 2011-10-14 12:30

安装上readline试试
页: [1]
查看完整版本: 用GEM安装Heroku客户端出错