美文网首页
homebrew安装报错汇总

homebrew安装报错汇总

作者: Mr君 | 来源:发表于2019-11-04 09:46 被阅读0次

    首先参考官网安装
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

    1. 报错 curl: (7) Failed to connect to raw.githubusercontent.com port 443: Operation

    先在浏览器输入这个地址:
    https://raw.githubusercontent.com/Homebrew/install/master/install
    看是否能打开,不能打开就是你网络有问题,不要问我哦。
    能打开如下:

    image
    把这个网页保存名为brew_install.rb的文件,保存的位置你随便,只要自己能找到。
    则在终端输入curl
    $ curl
    curl: try 'curl --help' or 'curl --manual' for more information
    这样就没错,要是报错,那我就不知道了!
    然后在终端进入存放这个文件的目录(这个不用我教吧),然后终端输入
    ruby brew_install.rb
    然后等安装homebrew吧!
    作者:kangxx
    链接:https://www.jianshu.com/p/68efabd2e32b
    来源:简书
    著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
    1. 报错:fatal: unable to access 'https://github.com/Homebrew/brew/': Could not resolve proxy: proxy.server.com

    I, too, just had this problem start all of a sudden within the past few days. It's definitely not Homebrew as mentioned above; I ended up doing

    git config --global --unset http.proxy
    git config --global --unset https.proxy
    and then restarting my term session and it works again

    1. 报错 Permission denied @ rb_file_s_symlink - (../../../Homebrew/completions/zsh/_brew, /usr/local/share/zsh/site-functions/_brew) Failed during: /usr/local/bin/brew update --force

    Try to sudo chown -R $USER:admin /usr/local/*

    1. 报错 sudo chown -R $USER:admin /usr/local/bin/brew illegal user name

    https://discourse.brew.sh/t/howto-install-homebrew/298/2

    https://stackoverflow.com/questions/33948479/unable-to-install-homebrew-getting-illegal-user-name-error?rq=1

    相关文章

      网友评论

          本文标题:homebrew安装报错汇总

          本文链接:https://www.haomeiwen.com/subject/igavuctx.html