▶ /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
查了挺多资料,都没找到,求解。。。
1
mrchi 2018-08-11 00:16:08 +08:00 2
Mac 开发环境搭建第一步,先翻墙!!!
|
2
shadowdsp OP 翻了呀= =google 可以上,全局和自动代理都试过了
|
3
boris1993 2018-08-11 00:37:33 +08:00 via Android
git clone 的时候出的错
给 git 配代理 |
4
OscarUsingChen 2018-08-11 00:38:12 +08:00
|
5
gitopen 2018-08-11 00:48:25 +08:00 via Android
|
6
mrchi 2018-08-11 00:50:53 +08:00
@shadowdsp 全局和自动代理影响不到 shell,手动 export 即可。
export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087; |
7
zetary 2018-08-11 01:05:56 +08:00 via iPhone
dns 改一下试试,之前碰到过一次改成四个 1 就好了
|
8
shadowdsp OP |
9
megachweng 2018-08-11 01:12:53 +08:00 via iPhone
不会设置就用国内镜像源吧 搜清华 brew bottle
|
10
Lonely 2018-08-11 01:20:15 +08:00 via iPhone
对于这种服务,我都是用 docker 的,省事省力
|
11
molvqingtai 2018-08-11 02:25:38 +08:00 via Android
ss 的全局对终端是没有用的
|
12
leafiy 2018-08-11 02:35:26 +08:00
路由器翻墙,一身清爽
|
13
leafiy 2018-08-11 02:37:55 +08:00
如果不能路由器翻,临时开个瓦皮恩,装好赶紧断掉,省的被封 ip,然后关 sip,再装个 proxychains,terminal 就可以走 ss 了
|
14
Wicked 2018-08-11 02:46:50 +08:00 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 |
15
Wicked 2018-08-11 02:50:33 +08:00 via iPhone
用的是 sock5 代理,端口你自己查一下具体是哪个
我好像也是在 V2EX 上学来的,你搜一下原帖 |
21
mrchi 2018-08-11 11:54:43 +08:00
@shadowdsp
https://i.loli.net/2018/08/11/5b6e5d95ea5f7.png ShadowsocksX-NG 开到 PAC 或者全局,默认的 HTTP 代理端口应该就是 1087。 |