Skip to content

Instantly share code, notes, and snippets.

@youthkee
Created September 25, 2015 04:16
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 youthkee/4d98dbd2a9a1f106fa71 to your computer and use it in GitHub Desktop.
Save youthkee/4d98dbd2a9a1f106fa71 to your computer and use it in GitHub Desktop.
Yosemiteアップグレード後に発生したHomebrewのエラー対応(2015年9月版) ref: http://qiita.com/youthkee/items/d7fcb8132b97a83e4171
if MACOS and MACOS_VERSION < 10.5
abort <<-EOABORT.undent
Homebrew requires Leopard or higher. For Tiger support, see:
http://github.com/sceaga/homebrew/tree/tiger
EOABORT
end
if MACOS and MACOS_VERSION < 10.5 and MACOS_VERSION != 10.1 and MACOS_VERSION != 10.11
abort <<-EOABORT.undent
Homebrew requires Leopard or higher. For Tiger support, see:
http://github.com/sceaga/homebrew/tree/tiger
EOABORT
end
#!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby -W0
(中略)
if OS.mac? and MacOS.version < "10.6"
abort <<-EOABORT.undent
Homebrew requires Snow Leopard or higher. For Tiger and Leopard support, see:
https://github.com/mistydemeo/tigerbrew
EOABORT
end
/usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory
/usr/local/bin/brew: line 21: /usr/local/Library/brew.rb: Undefined error: 0
$ git status
(中略)
# Unmerged paths:
# (use "git add <file>..." to mark resolution)
#
# both modified: Library/brew.rb
$ git reset --hard origin/master
$ brew update
$ git reset --hard origin/master
Homebrew requires Leopard or higher. For Tiger support, see:
https://github.com/mistydemeo/tigerbrew
Mac OS X `10.1' is invalid
cd /usr/local/
git add Library/brew.rb
git commit -m "Fix brew.rb for yosemite update"
[master 7d35673] Fix brew.rb for yosemite update
1 file changed, 2 insertions(+), 2 deletions(-)
$ brew update
error: Your local changes to the following files would be overwritten by merge:
README.md
Please, commit your changes or stash them before you can merge.
Aborting
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master
$ git checkout README.md
$ brew update
Automatic merge failed; fix conflicts and then commit the result.
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment