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

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

    Steps to fix it:

    1. Install command line tools for Xcode 6

    2. Reinstall brew:

      ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
      
    3. Once brew is installed, rvm will work:

      rvm install ruby
      

    Worked for me, yahoo!

提交回复
热议问题