ubuntu – RVM没有拿起/ etc / gemrc

前端之家收集整理的这篇文章主要介绍了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://www.f2er.com/ubuntu/348775.html

猜你在找的Ubuntu相关文章