“RVM is not a function” error

后端 未结 10 1777
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-30 22:22

RVM is installed on my machine (running Mac OSX 10.6.8), correctly and it runs fine. The odd thing is that to run it, I have to use source ~/.rvm/scripts/rvm for ev

10条回答
  •  迷失自我
    2021-01-30 22:35

    Well, with mountain lion (10.8.3) what worked for me was editing /etc/profile

    and adding the line mentioned before at the bottom of the file:

      if test -f ~/.rvm/scripts/rvm; then
            [ "$(type -t rvm)" = "function" ] || source ~/.rvm/scripts/rvm
        fi
    

提交回复
热议问题