rvm: command not found MAC OX

2019-01-21 01:41发布

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

8条回答
乱世女痞
2楼-- · 2019-01-21 01:56

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"
查看更多
地球回转人心会变
3楼-- · 2019-01-21 02:06

This worked for me:

rm -rf ~/.rvm
curl -L https://get.rvm.io | bash -s stable
查看更多
Melony?
4楼-- · 2019-01-21 02:10

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

查看更多
三岁会撩人
5楼-- · 2019-01-21 02:14

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
查看更多
Anthone
6楼-- · 2019-01-21 02:15

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

查看更多
地球回转人心会变
7楼-- · 2019-01-21 02:16

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

you need to close the terminal ,then open again!

查看更多
登录 后发表回答