Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem installing RVM

I have executed the commands as prescribed in the instructions at the rvm website but things don't seem to work..

Fetching the code from the git repository runs smoothly but when I try to use

 rvm notes

Error:

/usr/local/bin/rvm: line 73: /home/cody/.rvm/scripts/rvm: No such file or directory

flashes in multiple lines and doesn't stop till I hit ctrl+C.. I am running Ubuntu 8.04 and currently I am running ruby 1.9.2.. Sorry, if I am missing out any necessary information. Thanks in advance.

like image 934
Apoorv Saxena Avatar asked Feb 09 '11 13:02

Apoorv Saxena


1 Answers

Ack, I didn't mean to post this as a comment on the question. Anyway, if I had to guess, I'd say you installed rvm using sudo or as root. If that is the case, remove it and reinstall without sudo:

sudo rm -rf $HOME/.rvm $HOME/.rvmrc /etc/rvmrc /etc/profile.d/rvm.sh \
  /usr/local/rvm /usr/local/bin/rvm
sudo /usr/sbin/groupdel rvm # this might fail, it's not that important

Open new terminal window/tab and make sure rvm is removed:

env | grep rvm

The output should be empty, sometimes it's needed to relogin, after it's empty you can continue:

curl -sSL https://get.rvm.io | bash -s stable

It works perfectly fine installed for the local user.

like image 155
Mike Yockey Avatar answered Oct 18 '22 09:10

Mike Yockey