How to get Ruby / Homebrew / RVM to work on Yosemite?

前端 未结 11 1883
自闭症患者
自闭症患者 2020-11-30 19:32

After installing Yosemite, I was unable to run brew or ruby.

I was getting this error on brew update:

/usr/local/bin/brew: /usr/local/Library/brew.r         


        
11条回答
  •  情歌与酒
    2020-11-30 19:52

    Editing the script means brew update won't work; there are local edits to tracked files which causes the git pull to fail.

    I did this, which I suspect is cleaner:

    cd /usr/local/Library
    git pull -q origin refs/heads/master:refs/remotes/origin/master
    

    There are no complaints from brew doctor.

提交回复
热议问题