rvm: command not found MAC OX

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 | 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

0

9 Answers

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

8

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

rm -rf ~/.rvm
curl -L | bash -s stable
3

after you run sudo curl -L | bash -s stable --ruby

you need to close the terminal ,then open again!

3

This worked for me:

rm -rf ~/.rvm
curl -L | bash -s stable
0

source /etc/profile worked for me.

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"

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

As suggested by @mpapis, Do this first

$ rm -rf ~/.rvm

$ curl -L | bash -s stable

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

$ source ~/.rvm/scripts/rvm

1

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).

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like