ubuntu – RVM没有拿起/ etc / gemrc

在系统范围的RVM ….
继承我的/ etc / gemrc

---
gem:--no-ri --no-rdoc

继承人系统宝石环境

 GEM PATHS:
     - /usr/lib/ruby/gems/1.9.1
     - /home/${USER}/.gem/ruby/1.9.1
    GEM CONFIGURATION:
         - :update_sources => true
         - :verbose => true
         - :benchmark => false
         - :backtrace => false
         - :bulk_threshold => 1000
         - "gem" => "--no-ri --no-rdoc"

并且是rvm中的那个

GEM PATHS:
 - /usr/local/rvm/gems/ruby-1.9.2-p180
 - /usr/local/rvm/gems/ruby-1.9.2-p180@global
GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000

和rvm @global

    GEM PATHS:
     - /usr/local/rvm/gems/ruby-1.9.2-p180
     - /usr/local/rvm/gems/ruby-1.9.2-p180@global
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000

为什么不拿起gemrc文件?

同样在这里.试试这条路:

/usr/local/rvm/rubies/ruby-1.9.2-p180/etc/gemrc

要获得路径:

$irb
>> require 'etc'
>> Etc.sysconfdir 
 => "/usr/local/rvm/rubies/ruby-1.9.2-p180/etc" 
翻译自:https://serverfault.com/questions/264972/rvm-not-picking-up-etc-gemrc

转载注明原文:ubuntu – RVM没有拿起/ etc / gemrc