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?

On 11 May 2011 16:58, Cssio [email protected] wrote:

Hello, after upgrading to ubuntu 11.04 im having this problem with
rvm. Im following this tutorial:
http://ruby.railstutorial.org/ruby-on-rails-tutorial-book#top

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

On 12 May 2011 00:35, Alex K. [email protected] wrote:

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

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.

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/

On 11 Mai, 17:58, Cssio [email protected] wrote:

Hello, after upgrading to ubuntu 11.04 im having this problem with
rvm. Im following this
tutorial:http://ruby.railstutorial.org/ruby-on-rails-tutorial-book#top

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?

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

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

On Thu, May 12, 2011 at 12:49 PM, Cssio [email protected]
wrote:

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.

user$ echo '[[ -s “$HOME/.rvm/scripts/rvm” ]] && . "$HOME/.rvm/scripts/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs