【问题标题】:rvm gempath issue (Could not find RubyGem >=0 error)rvm gempath 问题(找不到 RubyGem >=0 错误)
【发布时间】:2011-12-05 05:14:38
【问题描述】:

我使用 rvm(没有 gemsets)安装了 ruby​​,现在正在尝试安装乘客。但是,我收到未找到乘客 gem(已安装)的错误。当 GEM_PATH 环境变量设置正确时,这会出现。

我看到的主要问题是配置中的“gempath”未设置为任何内容。有谁知道如何设置这个?我假设这是问题所在是否正确?

注意:我已经看过Yehuda Katz's post,但重新散列似乎没有帮助(+ 我没有使用捆绑包)

RubyGems Environment:
    - RUBYGEMS VERSION: 1.8.10
    - RUBY VERSION: 1.9.3 (2011-10-30 patchlevel 0) [x86_64-linux]
    - INSTALLATION DIRECTORY: /home4/onezerh4/ruby/gems
    - RUBY EXECUTABLE: /home4/onezerh4/.rvm/rubies/ruby-1.9.3-p0/bin/ruby
    - EXECUTABLE DIRECTORY: /home4/onezerh4/ruby/gems/bin
    - RUBYGEMS PLATFORMS:
        - ruby
        - x86_64-linux
    - GEM PATHS:
        - /home4/onezerh4/ruby/gems
    - GEM CONFIGURATION:
        - :update_sources => true
        - :verbose => true
        - :benchmark => false
        - :backtrace => false
        - :bulk_threshold => 1000
        - "gem" => "--remote --gen-rdoc --run-tests"
        - "gemhome" => "/home4/onezerh4/ruby/gems"
        - "gempath" => []
        - "rdoc" => "--inline-source --line-numbers"
    - REMOTE SOURCES:
        - http://rubygems.org/

任何帮助将不胜感激。

【问题讨论】:

    标签: ruby rvm


    【解决方案1】:

    看起来你在~/.gemrc中指定了一些设置:

        - "gem" => "--remote --gen-rdoc --run-tests"
        - "gemhome" => "/home4/onezerh4/ruby/gems"
        - "gempath" => []
        - "rdoc" => "--inline-source --line-numbers"
    

    您至少需要从~/.gemrc 中删除gemhomegempath 条目

    另请注意,您不需要将--remote 添加到gem

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-09-14
      • 1970-01-01
      • 2011-02-01
      • 2023-04-02
      相关资源
      最近更新 更多