I just installed RVM, but can’t make it work. I have such line at the end of my .profile file:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
I tried to run source .profile and restarting terminal, but still, when I run rvm use 1.9.2 I’m getting:
RVM is not a function, selecting rubies with 'rvm use ...' will not work.
My system is Ubuntu 11.10.
You are not using an login shell.
The process of enabling the login flag is described here, also some details on what a login shell is can be found here.
Thus, you need to check the option “Run as login shell” in the Gnome terminal’s settings. It is required to open new terminal after this setting the flag.
Sometimes it is required to set the command to
/bin/bash --login.For remote connections it is important to understand the differene between running interactive
sshsession and executing single commands.While running
ssh serverand then working with the server interactively you are using login shell by default and it’s all fine, but forssh server "command"you are not using login shell and it would be required to run it withssh server 'bash -lc "command"'.Any remote invocation can have the same problem as executing single command with
ssh.