shadowdsp
V2EX  ›  macOS

mac 下 homebrew 安装不了

  •  
  •   shadowdsp · Aug 11, 2018 · 6232 views
    This topic created in 2857 days ago, the information mentioned may be changed or developed.

    ▶ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ==> This script will install: /usr/local/bin/brew /usr/local/share/doc/homebrew /usr/local/share/man/man1/brew.1 /usr/local/share/zsh/site-functions/_brew /usr/local/etc/bash_completion.d/brew /usr/local/Homebrew

    Press RETURN to continue or any other key to abort ==> Downloading and installing Homebrew... remote: Counting objects: 107254, done. error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54 fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed Failed during: git fetch origin master:refs/remotes/origin/master --tags --force

    查了挺多资料,都没找到,求解。。。

    27 replies    2018-08-11 22:58:32 +08:00
    mrchi
        1
    mrchi  
       Aug 11, 2018   ❤️ 2
    Mac 开发环境搭建第一步,先翻墙!!!
    shadowdsp
        2
    shadowdsp  
    OP
       Aug 11, 2018
    翻了呀= =google 可以上,全局和自动代理都试过了
    boris1993
        3
    boris1993  
       Aug 11, 2018 via Android
    git clone 的时候出的错
    给 git 配代理
    mrchi
        6
    mrchi  
       Aug 11, 2018
    @shadowdsp 全局和自动代理影响不到 shell,手动 export 即可。

    export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087;
    zetary
        7
    zetary  
       Aug 11, 2018 via iPhone
    dns 改一下试试,之前碰到过一次改成四个 1 就好了
    shadowdsp
        8
    shadowdsp  
    OP
       Aug 11, 2018
    @gitopen
    @mrchi curl: (7) Failed to connect to 127.0.0.1 port 1087: Connection refused
    = =
    megachweng
        9
    megachweng  
       Aug 11, 2018 via iPhone
    不会设置就用国内镜像源吧 搜清华 brew bottle
    Lonely
        10
    Lonely  
       Aug 11, 2018 via iPhone
    对于这种服务,我都是用 docker 的,省事省力
    molvqingtai
        11
    molvqingtai  
       Aug 11, 2018 via Android
    ss 的全局对终端是没有用的
    leafiy
        12
    leafiy  
       Aug 11, 2018
    路由器翻墙,一身清爽
    leafiy
        13
    leafiy  
       Aug 11, 2018
    如果不能路由器翻,临时开个瓦皮恩,装好赶紧断掉,省的被封 ip,然后关 sip,再装个 proxychains,terminal 就可以走 ss 了
    Wicked
        14
    Wicked  
       Aug 11, 2018 via iPhone
    git config — global http.proxy sock5:127.0.0.1:1086

    ~/.ssh/config
    Host GitHub.com
    ProxyCommand nc -X 5 -x 127.0.0.1:1086 %h %p
    Wicked
        15
    Wicked  
       Aug 11, 2018 via iPhone
    用的是 sock5 代理,端口你自己查一下具体是哪个
    我好像也是在 V2EX 上学来的,你搜一下原帖
    mrchi
        16
    mrchi  
       Aug 11, 2018
    @shadowdsp 这个是我的 V·P·N 在本地的 HTTP 代理端口,你要改成你自己的。
    shadowdsp
        17
    shadowdsp  
    OP
       Aug 11, 2018
    @mrchi 配置成功的话使用 `curl ip.cn` 这个命令的话地区会变化吗。
    mrchi
        18
    mrchi  
       Aug 11, 2018
    @shadowdsp 会!
    shadowdsp
        19
    shadowdsp  
    OP
       Aug 11, 2018
    @mrchi 那我 GG 了= =我换成 shadowsockX-NG 以为可以了,结果还是不行
    shadowdsp
        20
    shadowdsp  
    OP
       Aug 11, 2018
    @mrchi 可以给下 qq 或者微信方便截图吗
    mrchi
        21
    mrchi  
       Aug 11, 2018
    @shadowdsp

    https://i.loli.net/2018/08/11/5b6e5d95ea5f7.png

    ShadowsocksX-NG 开到 PAC 或者全局,默认的 HTTP 代理端口应该就是 1087。
    shadowdsp
        22
    shadowdsp  
    OP
       Aug 11, 2018
    @mrchi 终于可以了十分感谢!之前用那种 git config 的方法不行。。
    lancelock
        23
    lancelock  
       Aug 11, 2018
    @mrchi 哇,偶然看到,之前一直为这个问题困扰。
    另外问一句,你终端用的什么字体啊?挺好看的
    1002xin
        24
    1002xin  
       Aug 11, 2018
    @lancelock 看图应该是 ohmyzsh 的 agnoster,这种随便一搜就有的
    lancelock
        25
    lancelock  
       Aug 11, 2018
    @1002xin 我问的是字体
    czjackjin
        26
    czjackjin  
       Aug 11, 2018
    @mrchi 用 ng 的菜单里的 copy http.....export line,然后粘贴到终端里,试试看吧。
    mrchi
        27
    mrchi  
       Aug 11, 2018
    @shadowdsp 不客气哈


    @lancelock 是 mononoki,但是用 iTerm2 调了行间距为 110%,字间距为 90%。oh-my-zsh 主题确实是 agnoster
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2748 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 73ms · UTC 02:29 · PVG 10:29 · LAX 19:29 · JFK 22:29
    ♥ Do have faith in what you're doing.