mac osx 安装brew问题

发布于 2022-08-27 12:49:08 字数 1387 浏览 9 评论 0

找到了安装命令:

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

蓝海 2022-09-03 12:49:08

用这个命令行安装:

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"

蓝眼泪 2022-09-03 12:49:08

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文