ubuntu - Installed Ruby 1.9.3 with RVM but command line doesn't show ruby -v - Stack Overflow

作者: lexus
发布时间:2015-07-13 11:31:57

ubuntu - Installed Ruby 1.9.3 with RVM but command line doesn't show ruby -v - Stack Overflow

ou have broken version of RVM - Ubuntu does something to RVM that produces lots of errors, the only safe way of fixing for now is to:

sudo apt-get --purge remove ruby-rvm sudo rm -rf /usr/share/ruby-rvm /etc/rvmrc /etc/profile.d/rvm.sh 

open new terminal and validate environment is clean from old rvm settings (should be no output):

env | grep rvm 

if there was output, try to open new terminal, if it does not help - restart computer

install RVM:

curl -L get.rvm.io | bash -s stable --auto 

do not forget to read rvm requirements before installing rubies

来源:http://www.cnblogs.com/lexus/archive/2012/09/22/2697936.html

推荐: