views:

10

answers:

1

I am trying to use rvm(ruby version manager) and after the source installation, I need to add rvm command into my profile.

I added following code to the $HOME/.profile file but it does not seem to work.

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.

So I just manually typed below for temporary addition of rvm command, but it does not seem to work. I get Missing name for redirect error like below.

source ~/.rvm/scripts/rvm Missing name for redirect.

How can I resolve this problem? Btw, I do not have root access, and my linux is a redhat system.

A: 

You shouldn't need root access. (In fact, I think that it's recommended that you use rvm as a regular user.)

Are you using bash or csh as a shell? A quick trip to Google suggests that the problem might be your shell (or maybe the version of Bash?).

Telemachus