Problem installing RVM

2019-03-13 05:32发布

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.

8条回答
The star\"
2楼-- · 2019-03-13 06:05

Ok, for anyone who tried to install RVM using sudo and is now pulling their hair out trying to get it to install in $HOME/.rvm, here's what did it for me:

When you installed RVM using sudo, it created a file /etc/rvmrc, which contains the following:

umask g+w  
export rvm_path="/usr/local/rvm"  

This makes all future attempts at installation (even when not run as sudo) install into /usr/local/rvm, which is NOT what you want for a single user installation. So remove /etc/rvmrc and then you can run

bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)  

and it will install properly into $HOME/.rvm

查看更多
再贱就再见
3楼-- · 2019-03-13 06:06

DId you add this line to your ~/.bashrc?

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
查看更多
登录 后发表回答