7

$GEM_PATH 设置在哪里?

它显然是这样设置的:

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!
4

2 回答 2

1

(已编辑)其他一些需要检查的地方GEM_PATH

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

另见:http ://www.linuxfromscratch.org/blfs/view/6.3/postlfs/profile.html

于 2012-12-20T14:33:35.587 回答
1

当您加载默认红宝石source /path/to/rvm/scripts/rvm,并设置其他设置默认红宝石数量GEM_HOMEGEM_PATH以及PATH

于 2012-12-20T15:11:49.780 回答