golang.org/x/sys/unix: unrecognized

安装的过程中报错 :

package golang.org/x/sys/unix: unrecognized import path "golang.org/x/sys/unix" (https fetch: Get https://golang.org/x/sys/unix?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)

被长城墙了,您可以这这么操作:(参看 http://www.fecshop.com/topic/805)

1 cd ~/go/src
2 mkdir -p golang.org/x
3 cd golang.org/x
4 git clone https://github.com/golang/sys.git

参考:

https://blog.csdn.net/weixin_42280360/article/details/80649038

http://www.fecshop.com/topic/806

猜你喜欢

转载自www.cnblogs.com/zxs117/p/11753861.html