Bash $GEM_路径通常设置在哪里?

Bash $GEM_路径通常设置在哪里?,bash,gem,rvm,Bash,Gem,Rvm,$GEM_路径设置在哪里 很明显,它的设置如下所示: echo $GEM_PATH /Users/snowcrash/.rvm/gems/ruby-1.9.2-p318:/Users/snowcrash/.rvm/gems/ruby-1.9.2-p318@global 但这不是我所期望的,例如 [app (master)]$ grep GEM_PATH ~/.bash_profile [app (master)]$ grep GEM_PATH ~/.bashrc [app (master)]$

$GEM_路径设置在哪里

很明显,它的设置如下所示:

echo $GEM_PATH
/Users/snowcrash/.rvm/gems/ruby-1.9.2-p318:/Users/snowcrash/.rvm/gems/ruby-1.9.2-p318@global
但这不是我所期望的,例如

[app (master)]$ grep GEM_PATH ~/.bash_profile
[app (master)]$ grep GEM_PATH ~/.bashrc
[app (master)]$ 
编辑

这里也不是:

vim config/environment.rb 

# Load the rails application
require File.expand_path('../application', __FILE__)

# Initialize the rails application
Accounts::Application.initialize!
(已编辑)检查
GEM\u路径的其他几个地方

  • config/environment.rb
  • /etc/profile
  • /etc/profile.d
  • /etc/bashrc

另请参见:

当您
source/path/to/rvm/scripts/rvm
时,将加载默认ruby,并设置其他集合的默认ruby数量
GEM\u HOME
GEM\u path
path

grep“GEM\u path”/etc/profile
如何?不-也不存在。或者,fwiw,/etc/bashrc