Skip to content

Instantly share code, notes, and snippets.

@gamache
Created June 4, 2014 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gamache/190c1efc7184b856a2b1 to your computer and use it in GitHub Desktop.
Save gamache/190c1efc7184b856a2b1 to your computer and use it in GitHub Desktop.
fixing Homebrew on OS X Yosemite

This worked for me.

  1. Change the first line of /usr/local/Library/brew.rb to: #!/usr/bin/env ruby.
  2. cd $(brew --repository)
  3. git commit -am 'use env ruby'.
  4. OLD_REF = $(git log | head -1 | sed 's/commit //')
  5. git reset --hard HEAD^
  6. git checkout $OLD_REF
  7. brew update
@tuhaihe
Copy link

tuhaihe commented Jul 30, 2014

Thanks.
I tried the No.1 method. It works !
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment