shadowdsp
V2EX  ›  macOS

mac 下 homebrew 安装不了

  •  
  •   shadowdsp · Aug 11, 2018 · 6510 views
    This topic created in 3012 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
    mrchi
    Aug 11, 2018❤️2
    1
    Mac 开发环境搭建第一步,先翻墙!!!
    shadowdsp
    shadowdsp
    OP
    Aug 11, 2018
    2
    翻了呀= =google 可以上,全局和自动代理都试过了
    boris1993
    boris1993
    Aug 11, 2018 via Android
    3
    git clone 的时候出的错
    给 git 配代理
    mrchi
    mrchi
    Aug 11, 2018
    6
    @shadowdsp 全局和自动代理影响不到 shell,手动 export 即可。

    export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087;
    zetary
    zetary
    Aug 11, 2018 via iPhone
    7
    dns 改一下试试,之前碰到过一次改成四个 1 就好了
    shadowdsp
    shadowdsp
    OP
    Aug 11, 2018
    8
    @gitopen
    @mrchi curl: (7) Failed to connect to 127.0.0.1 port 1087: Connection refused
    = =
    megachweng
    megachweng
    Aug 11, 2018 via iPhone
    9
    不会设置就用国内镜像源吧 搜清华 brew bottle
    Lonely
    Lonely
    Aug 11, 2018 via iPhone
    10
    对于这种服务,我都是用 docker 的,省事省力
    molvqingtai
    molvqingtai
    Aug 11, 2018 via Android
    11
    ss 的全局对终端是没有用的
    schemesAlot
    schemesAlot
    Aug 11, 2018
    12
    路由器翻墙,一身清爽
    schemesAlot
    schemesAlot
    Aug 11, 2018
    13
    如果不能路由器翻,临时开个瓦皮恩,装好赶紧断掉,省的被封 ip,然后关 sip,再装个 proxychains,terminal 就可以走 ss 了
    Wicked
    Wicked
    Aug 11, 2018 via iPhone
    14
    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
    Wicked
    Aug 11, 2018 via iPhone
    15
    用的是 sock5 代理,端口你自己查一下具体是哪个
    我好像也是在 V2EX 上学来的,你搜一下原帖
    mrchi
    mrchi
    Aug 11, 2018
    16
    @shadowdsp 这个是我的 V·P·N 在本地的 HTTP 代理端口,你要改成你自己的。
    shadowdsp
    shadowdsp
    OP
    Aug 11, 2018
    17
    @mrchi 配置成功的话使用 `curl ip.cn` 这个命令的话地区会变化吗。
    mrchi
    mrchi
    Aug 11, 2018
    18
    @shadowdsp 会!
    shadowdsp
    shadowdsp
    OP
    Aug 11, 2018
    19
    @mrchi 那我 GG 了= =我换成 shadowsockX-NG 以为可以了,结果还是不行
    shadowdsp
    shadowdsp
    OP
    Aug 11, 2018
    20
    @mrchi 可以给下 qq 或者微信方便截图吗
    mrchi
    mrchi
    Aug 11, 2018
    21
    @shadowdsp

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

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


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