mac装brew
Mac下使用国内镜像安装Homebrew 一、根据官网上的方法,在终端输入: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 二、下载修改安装文件 然并卵,在我们大新疆是实现不了的。。。。 找兄弟帮忙,打开该页面 https://raw.githubusercontent.com/Homebrew/install/master/install 然后另存文件传回来,后做如下修改。 安装全文如下: !/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby This script installs to /usr/local only. To install elsewhere (which is unsupported) you can untar https://github.com/Homebrew/brew/tarball/master anywhere you like. HOMEBREW_PREFIX = "/usr/local".freeze HOMEBREW_REPOSITORY = "/usr/local/Homebrew"