ruby HomeBrew修复

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ruby HomeBrew修复相关的知识,希望对你有一定的参考价值。

sudo brew doctor

# Update HomeBrew

cd /usr/local && \
sudo git add . && \
sudo git reset --hard HEAD && \
sudo git pull --rebase

#!/usr/bin/env ruby

class CleaningHomeBrew
  
  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

以上是关于ruby HomeBrew修复的主要内容,如果未能解决你的问题,请参考以下文章

通过 Homebrew 在 MacOS 上使用 asdf 安装 ruby

ruby Homebrew中的zlog

ruby nyancat_homebrew_formula

ruby pycdc_homebrew_formula

ruby Homebrew的tsunami-udp

OS X上修复The current contents of /usr/local are bin Cellar