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

前端 未结 11 1845
自闭症患者
自闭症患者 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:51

    Note: Only do the below if you end up in a completely failed state, as this is very DANGEROUS

    As an example I kept getting

    $ sudo ln -s Current 1.8

    $ brew update

    /usr/local/Library/brew.rb:18:in ': undefined method help?’ for [“update”]:Array (NoMethodError)

    I just get this…(no matter what command just switch out “update” with the command) I solved the problem by asking for a buddies /usr/local folder. I then made a backup of my /usr/local folder.

    sudo mv /usr/local /usr/local.orig

    I then moved his /usr/local to mine

    sudo mv ~/Downloads/local /usr/local

    Note: You will likely lose some data so make sure to make a backup.

提交回复
热议问题