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!
GEM_PATH provides the locations (there may be several) where gems can be found. GEM_HOME is where gems will be installed (by default).
Just right click on a gem to pull it back out. You can remove them, put them in any other slot of that color. There are serveral video guides on youtube about nearly anything that new players may be asking questions about. This is a short video in my Path of Exile series that explains the skill and gem system.
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
(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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With