无法在[]中找到heroku(>=0)(Gem::LoadError)。[英] Could not find heroku (>= 0) amongst [] (Gem::LoadError)

本文是小编为大家收集整理的关于无法在[]中找到heroku(>=0)(Gem::LoadError)。的处理方法,想解了无法在[]中找到heroku(>=0)(Gem::LoadError)。的问题怎么解决?无法在[]中找到heroku(>=0)(Gem::LoadError)。问题的解决办法?那么可以参考本文帮助大家快速定位并解决问题。

问题描述

呃.我刚从 Windows 7 安装转移到 Lion 系统.我正在尝试自学 Ruby on Rails,虽然我喜欢这种语言,但环境感觉脆弱而神秘.我使用相同的命令在两个系统上安装 heroku,但 System X 系统对安装不满意.

在 System X 上,我使用了 rvm,这可能是我的问题.

什么控制 Gems 的安装位置?

如何让 heroku 启动并运行?什么可以防止下一颗宝石丢失?

$ sudo gem install heroku
...

$ heroku -v

~/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find heroku (>= 0) amongst [minitest-1.6.0, rake-0.8.7, rdoc-2.5.8] (Gem::LoadError)
    from /Users/aliwells26/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
    from /Users/aliwells26/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems.rb:1210:in `gem'
    from /Users/aliwells26/.rvm/gems/ruby-1.9.2-p290@rails3tutorial/bin/heroku:18:in `<main>'

$ gem environment
RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.11
  - RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [x86_64-darwin11.2.0]
  - INSTALLATION DIRECTORY: /Users/aliwells26/.rvm/gems/ruby-1.9.2-p290@rails3tutorial
  - RUBY EXECUTABLE: /Users/aliwells26/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
  - EXECUTABLE DIRECTORY: /Users/aliwells26/.rvm/gems/ruby-1.9.2-p290@rails3tutorial/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-darwin-11
  - GEM PATHS:
     - /Users/aliwells26/.rvm/gems/ruby-1.9.2-p290@rails3tutorial
     - /Users/aliwells26/.rvm/gems/ruby-1.9.2-p290@global
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/

$ echo $PATH
/Users/aliwells26/.rvm/gems/ruby-1.9.2-p290@rails3tutorial/bin:/Users/aliwells26/.rvm/bin:/Users/aliwells26/.rvm/gems/ruby-1.9.2-p290/gems/rails-3.1.1/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/usr/local/git/bin

推荐答案

这可能有用.它适用于我的环境.

rvmsudo gem install heroku

请参阅:在 [] 中找不到 rails (>= 0)(Gem::LoadError)

本文地址:https://www.itbaoku.cn/post/786535.html