add following lines below "export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting" into ~/.profile
export GEM_PATH="/Users/spond/.rvm/gems/ruby-2.2.0"
export GEM_HOME="/Users/spond/.rvm/gems/ruby-2.2.0"
export PATH="$GEM_HOME/bin:$PATH"
then run command:
source ~/.bash_profiile
make sure that the GEM_HOME at the first location of PATH.
时间: 2024-10-16 01:17:13