Reputation: 86057
Where is $GEM_PATH set?
It clearly is being set as this shows:
echo $GEM_PATH
/Users/snowcrash/.rvm/gems/ruby-1.9.2-p318:/Users/snowcrash/.rvm/gems/ruby-1.9.2-p318@global
but it's not where I'd expect, e.g.
[app (master)]$ grep GEM_PATH ~/.bash_profile
[app (master)]$ grep GEM_PATH ~/.bashrc
[app (master)]$
EDIT
Neither is it here:
vim config/environment.rb
# Load the rails application
require File.expand_path('../application', __FILE__)
# Initialize the rails application
Accounts::Application.initialize!
Upvotes: 7
Views: 5618
Reputation: 53158
the default ruby is loaded when you source /path/to/rvm/scripts/rvm
, and setting default ruby amount other sets GEM_HOME
, GEM_PATH
and PATH
Upvotes: 1
Reputation: 47269
(Edited) A few other places to check for GEM_PATH
:
config/environment.rb
/etc/profile
/etc/profile.d
/etc/bashrc
See also: http://www.linuxfromscratch.org/blfs/view/6.3/postlfs/profile.html
Upvotes: 1