What is “USER INSTALLATION DIRECTORY” in rubyGems env

ぐ巨炮叔叔 提交于 2019-12-07 05:24:07

问题


Here's my RubyGems Environment:

  • RUBYGEMS VERSION: 2.5.2
  • RUBY VERSION: 2.2.2 (2015-04-13 patchlevel 95) [x86_64-darwin14]
  • INSTALLATION DIRECTORY: /Users/wh026399/.rvm/gems/ruby-2.2.2
  • USER INSTALLATION DIRECTORY: /Users/wh026399/.gem/ruby/2.2.0
  • RUBY EXECUTABLE: /Users/wh026399/.rvm/rubies/ruby-2.2.2/bin/ruby
  • EXECUTABLE DIRECTORY: /Users/wh026399/.rvm/gems/ruby-2.2.2/bin
  • SPEC CACHE DIRECTORY: /Users/wh026399/.gem/specs
  • SYSTEM CONFIGURATION DIRECTORY: /etc
  • RUBYGEMS PLATFORMS:
    • ruby
    • x86_64-darwin-14
  • GEM PATHS:
    • /Users/wh026399/.rvm/gems/ruby-2.2.2
    • /Users/wh026399/.rvm/gems/ruby-2.2.2@global

I was wondering what "USER INSTALLATION DIRECTORY" is. why it not point to gems under folder .rvm but .gem instead? Also, why is it using 2.2.0 which is a ruby version I didn't install?


回答1:


The User Installation Directory variable for RubyGems is the directory where gems will be installed when using the --user-install flag, which is a directory immediately within your home directory.

The User Installation Directory has always existed, but it was recently made more visible via pull 1343.



来源:https://stackoverflow.com/questions/35215396/what-is-user-installation-directory-in-rubygems-env

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!