2021-07-29

编译xray时老报错

go: github.com/ghodss/yaml@v1.0.1-0.20190212211648-25d852aebe32: Get “https://proxy.golang.org/github.com/ghodss/yaml/@v/v1.0.1-0.20190212211648-25d852aebe32.mod”: dial tcp 172.217.24.17:443: i/o timeout

Building targets
go: github.com/ghodss/yaml@v1.0.1-0.20190212211648-25d852aebe32: Get “https://proxy.golang.org/github.com/ghodss/yaml/@v/v1.0.1-0.20190212211648-25d852aebe32.mod”: dial tcp 172.217.24.17:443: i/o timeout

Makefile:176: recipe for target ‘/mnt/disk2/project/lede/build_dir/target-mipsel_24kc_musl/Xray-core-1.4.2/.built’ failed
make[3]: *** [/mnt/disk2/project/lede/build_dir/target-mipsel_24kc_musl/Xray-core-1.4.2/.built] Error 1
make[3]: Leaving directory ‘/mnt/disk2/project/lede/package/small/xray-core’
time: package/small/xray-core/compile#0.20#0.89#64.79
ERROR: package/small/xray-core failed to build.
package/Makefile:114: recipe for target ‘package/small/xray-core/compile’ failed
make[2]: *** [package/small/xray-core/compile] Error 1
make[2]: Leaving directory ‘/mnt/disk2/project/lede’
package/Makefile:110: recipe for target ‘/mnt/disk2/project/lede/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile’ failed
make[1]: *** [/mnt/disk2/project/lede/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory ‘/mnt/disk2/project/lede’
/mnt/disk2/project/lede/include/toplevel.mk:228: recipe for target ‘world’ failed
make: *** [world] Error 2
jason@ubuntu:/mnt/disk2/project/lede$
jason@ubuntu:/mnt/disk2/project/lede$

原因,上述连接被和谐了。

解决办法:

jason@ubuntu:/mnt/disk2/project/lede$ export GO111MODULE=on
jason@ubuntu:/mnt/disk2/project/lede$ export GOPROXY=https://goproxy.cn
jason@ubuntu:/mnt/disk2/project/lede$

参考链接

https://github.com/goproxy/goproxy.cn
https://goproxy.cn/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

wireyou

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值