3

这是我的.gemrc

:verbose: true

我已经将相同的内容复制.gemrc/root//home/vagrant/中,以确保使用sudo不会影响我。

我已经检查了该设置是否适用:

root@vagrant $ gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.23
  - RUBY VERSION: 1.9.3 (2013-11-22 patchlevel 484) [x86_64-linux]
  - INSTALLATION DIRECTORY: /var/lib/gems/1.9.1
  - RUBY EXECUTABLE: /usr/bin/ruby1.9.1
  - EXECUTABLE DIRECTORY: /usr/local/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /var/lib/gems/1.9.1
     - /root/.gem/ruby/1.9.1
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/

问题是当我执行时:

root@vagrant $ gem install knife-solo

与执行时相比,我得到“不那么冗长”的输出:

root@vagrant $ gem install knife-solo --verbose

即使.gemrc文件设置verbosetrue.

我错过了什么?

4

1 回答 1

2

要为 gem 命令设置--verboseor--no-verbose选项,请将命令添加到 gem 键中~/.gemrc

gem: --no-ri --no-rdoc --verbose
于 2014-09-13T03:50:10.180 回答