I'm getting “RVM is not a function” error on Mac OS X, and no posted solutions work

后端 未结 3 2058
忘掉有多难
忘掉有多难 2021-02-19 01:40

I\'m on Mac OS x 10.8.2 (\"Mountain Lion\"), and I successfully installed RVM 1.17.8 and its dependencies. I\'m able to use it to install Ruby versions using rvm install 1

3条回答
  •  不知归路
    2021-02-19 02:05

    look for .profile, if exists, remove it! loof for .zshrc, if exists, remove it! Now, use vi to edit your .bash_profile, add this line

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

    Now, close all console services and open again, make a test using $ rvm gemset use global

    Work fine for me!

提交回复
热议问题