rvm: command not found MAC OX

MacosCommandRvm

Macos Problem Overview


Really, I don't know what happened. Excuse me if this question is so NOOB, but I can't find the solution for this problem.

>-bash: rvm: command not found

I tried this

>curl -L https://get.rvm.io | bash -s -- --version latest

but still nothing I need to see the ruby version for use the simplecov because it not works with older version from 1.9

Macos Solutions


Solution 1 - Macos

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

Solution 2 - Macos

you need to read all the texts that are displayed when you install RVM:

rm -rf ~/.rvm
curl -L https://get.rvm.io | bash -s stable

Solution 3 - Macos

after you run sudo curl -L https://get.rvm.io | bash -s stable --ruby

you need to close the terminal ,then open again!

Solution 4 - Macos

This worked for me:

rm -rf ~/.rvm
curl -L https://get.rvm.io | bash -s stable

Solution 5 - Macos

source /etc/profile worked for me.

Solution 6 - Macos

For a long-term solution, you should add this to your ~/.profile file:

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

to simply load rvm into a single terminal, use

source "$HOME/.rvm/scripts/rvm"

supposedly this call is more cross-platform:

. "$HOME/.rvm/scripts/rvm"

Solution 7 - Macos

Close and restart terminal after installing RVM — gets me EVERY TIME.

Solution 8 - Macos

To start using RVM, you'll need to enter source /Users/yourusername/.rvm/scripts/rvm into your terminal (of course, insert your real username in place of yourusername).

Solution 9 - Macos

As suggested by @mpapis, Do this first

$ rm -rf ~/.rvm

$ curl -L https://get.rvm.io | bash -s stable

Then, as suggested by @peterpengnz, do this and you should be fine with RVM cmd issues

$ source ~/.rvm/scripts/rvm

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAsantoya17View Question on Stackoverflow
Solution 1 - MacospeterpengnzView Answer on Stackoverflow
Solution 2 - MacosmpapisView Answer on Stackoverflow
Solution 3 - MacosparkerqianView Answer on Stackoverflow
Solution 4 - MacosDonRichardsView Answer on Stackoverflow
Solution 5 - MacosWilson SilvaView Answer on Stackoverflow
Solution 6 - MacosAlexander MillsView Answer on Stackoverflow
Solution 7 - MacosDavid J Roach VView Answer on Stackoverflow
Solution 8 - MacosCodeBikerView Answer on Stackoverflow
Solution 9 - Macosk9xView Answer on Stackoverflow