rvm: command not found MAC OX

后端 未结 9 2213
不思量自难忘°
不思量自难忘° 2020-12-12 12:48

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 f

相关标签:
9条回答
  • 2020-12-12 13:19

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

    0 讨论(0)
  • 2020-12-12 13:19

    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

    0 讨论(0)
  • 2020-12-12 13:20

    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"
    
    0 讨论(0)
  • 2020-12-12 13:25

    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

    0 讨论(0)
  • 2020-12-12 13:25

    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
    
    0 讨论(0)
  • 2020-12-12 13:25

    This worked for me:

    rm -rf ~/.rvm
    curl -L https://get.rvm.io | bash -s stable
    
    0 讨论(0)
提交回复
热议问题