Go语言学习笔记10:使用 github.com/weilaihui/fdfs_client 连接 fastDFS时,遇到了cannot find package "golang.org/x/的报错

今天在尝试使用weilaihui/fdfs_client时,一直无法通过编译,主要的报错有两处:

./github.com/Sirupsen/logrus/terminal_check_notappengine.go:9:2: cannot find package "golang.org/x/crypto/ssh/terminal"

./golang.org/x/crypto/ssh/terminal/util.go:20:2: cannot find package "golang.org/x/sys/unix"

谷歌了一下,网传是因为传说中的“墙”的问题。

解决方法是手动下载相关组件:

cd src/golang.org/x

git clone https://github.com/golang/crypto.git

git clone https://github.com/golang/crypto.git

完美解决。

参考:

https://blog.csdn.net/yanghx9013/article/details/80496838

https://github.com/fsnotify/fsnotify/issues/204

猜你喜欢

转载自blog.csdn.net/u012560213/article/details/83749788