RVM installation

Hello, after upgrading to ubuntu 11.04 im having this problem with rvm. Im following this tutorial:

Git is installed OK, when I follow the instructions on RVM website aparently its OK too, but when I close my terminal and open a new one and tipe ruby -v ou rvm -v for example I got a messenge "rvm is not installed".

What should I do?

Hello, after upgrading to ubuntu 11.04 im having this problem with rvm. Im following this tutorial: Ruby on Rails Tutorial | Learn Enough to Be Dangerous

Git is installed OK, when I follow the instructions on RVM website aparently its OK too, but when I close my terminal and open a new one and tipe ruby -v ou rvm -v for example I got a messenge "rvm is not installed".

Did you edit .bashrc according to the instructions that should have been shown when you installed rvm? In particular editing the line with && return on the end. this is what I do (extracted from my install script)

echo "now edit .bashrc" echo "change the line [ -z "$PS1" ] && return" echo "to" echo "if [[ -n "$PS1" ]]; then" echo "and add to the end" echo "fi" echo "[[ -s \"$HOME/.rvm/scripts/rvm\" ]] && source \"$HOME/.rvm/scripts/rvm\"" echo "where the backslashes in above should not be included in edit" echo "then save it and close and open the terminal" echo "then rvm notes should show release notes"

Hopefully it makes sense.

Colin

The problem is not Ubuntu. It is rvm. The line that you are suppose to add to your .bashrc has changed:

user$ echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile

Now you are suppose to run it from a shell. The old way was:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"

which you add it to your .bashrc file.

I had the same stupid problem.

The problem is not Ubuntu. It is rvm. The line that you are suppose to add to your .bashrc has changed:

user$ echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile

Now you are suppose to run it from a shell. The old way was:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"

which you add it to your .bashrc file. I had the same stupid problem.

I can't see the difference, can you point it out for me?

Colin

This is the original line that you used to into your .bashrc:

[[ -s “$HOME/.rvm/scripts/rvm” ]] && . “$HOME/.rvm/scripts/rvm”

This one is the new way that uses the bash shell echo command to stick the same line above in your .bashrc.

You can not put this in your .bashrc. You have to run this line in a bash shell terminal and do the same thing as above.

echo ‘[[ -s “$HOME/.rvm/scripts/rvm” ]] && . “$HOME/.rvm/scripts/rvm” # Load RVM function’ >> ~/.bash_profile

Most people just put the second line in the .bashrc by mistake.

I still didnt get it. I used this: user$ echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/ rvm" # Load RVM function' >> ~/.bash_profile As it tells me to use on http://beginrescueend.com/rvm/install/

How did you install rvm ?? Is it a root or a user installation ?

Klaus

PS: there is a special group for rvm: http://groups.google.com/group/rubyversionmanager

I still didnt get it. I used this:

Did your action insert this line:

[[ -s “$HOME/.rvm/scripts/rvm” ]] && . “$HOME/.rvm/scripts/rvm”

into your .bashrc? Are you using bash shell?

please answer both questions.

Thanks Alex, inserted "[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" " via gedit on my .bashrc and aparently it worked.