首页 > mac osx 安装brew问题

mac osx 安装brew问题

找到了安装命令:

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

但老超时,安装不了,不知道还有不有其它方法?

新的问题:


wyattdeMacBook-Pro:~ wyatt$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
==> The following directories will be made group writable:
/usr/local/.
/usr/local/bin
==> The following directories will have their group set to admin:
/usr/local/.
/usr/local/bin

Press ENTER to continue or any other key to abort
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/. /usr/local/bin
Password:
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/. /usr/local/bin
==> Downloading and installing Homebrew...
fatal: unable to access 'https://github.com/Homebrew/homebrew/': Failed connect to github.com:443; Operation timed out
Failed during: git fetch origin master:refs/remotes/origin/master -n

update:


wyattdeMacBook-Pro:~ wyatt$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
    rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup

今天也遇到这个问题了,反复卸载安装都没有解决。最后采用“将brew库下载到本地,不使用ruby安装”,完美解决。
具体解决方法如下:http://2tu.github.io/2015/10/16/brewInstall/


用这个命令行安装:

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"

update:根据 github 上 homebrew 的commit,链接该修改为:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

Change "mxcl/homebrew" refs to "Homebrew/homebrew"

【热门文章】
【热门文章】