Created
July 6, 2012 10:10
-
-
Save joel/3059360 to your computer and use it in GitHub Desktop.
Fix HomeBrew Binary unlinked after update Gcc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
class CleaningHomeBrew | |
# Your binaries unlinked | |
BINARIES = ['cmake', 'imagemagick', 'jasper', 'jpeg', 'libevent', 'libtiff', 'little-cms','memcached','mysql','ossp-uuid','pidof','postgresql','redis','sphinx','wget'] | |
class << self | |
def clean | |
BINARIES.each { |binary| system "sudo brew cleanup && sudo brew link #{binary} && sudo brew uninstall #{binary} && sudo brew install #{binary}" } | |
end | |
end | |
end | |
begin | |
CleaningHomeBrew.clean | |
end | |
# ./fix_homebrew.rb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment