Rvm Command Not Found

rvm: command not found MAC OX

It might because the terminal not having rvm shell configuration loaded.

Try following from your terminal:

$ source ~/.rvm/scripts/rvm

then

$ type rvm | head -n 1

If the output is:

rvm is a function

You may need to add "source ~/.rvm/scripts/rvm" to your ~/.bash_profile file

rvm command not found

Possible duplicate of: Ubuntu rvm setup issue


Your problem is that RVM is not loaded when you open a new terminal.

To solve this, run this command line: (if using login-shell)

echo "source $HOME/.rvm/scripts/rvm" >> ~/.bash_profile

Or this (if using non-login shell):

echo "source $HOME/.rvm/scripts/rvm" >> ~/.bashrc

Or if you are using zsh (and/or oh-my-zsh):

echo "source $HOME/.rvm/scripts/rvm" >> ~/.zshrc

This will add the path to RVM to load at each Terminal instantiation. You must either close and reopen your terminals or simply call source ~/.bashrc (or ~/.bash_profile or ~/.zshrc).

I am getting rvm: command not found after installation of rvm

Steps to try out:

  1. Log out and login to your system.

  2. Open a new terminal and manually run

source $HOME/.rvm/scripts/rvm

then

rvm

Check these work-arounds.

Update:

To avoid running

source $HOME/.rvm/scripts/rvm

every time you open a terminal, include this line into ~/.MacOSX/environment in your Mac (This is similar to ~/.bashrc in GNU/Linux-based systems under $home aka ~ directory).

bash: rvm: command not found after multi-user install

Look at answers for this question:

From your problem description it seems that the rvm script needs to be
loaded only once, during login. As far as I know, Ubuntu reads
/etc/profile/ and ~/.profile during login (the graphical login,
independent of bash). That means, after logging out and a logging in
once, the rvm script should be active. If it still doesn't work, then
perhaps the rvm script needs to be loaded for every bash session. If
that is the case then bashrc is the more appropriate place for the
script.

Command 'rvm' not found, did you mean:

You'll need to update your bashrc (or equivalent) so that the rvm stuff gets imported every time.

Just add source /usr/local/rvm/scripts/rvm to the end of that file



Related Topics



Leave a reply



Submit