Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Resolve the problem that the golang.org/x package cannot be downloaded

2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Since Google-related packages cannot be downloaded directly, you can use if to download them, and then create a soft connection or modify the folder name to solve the problem:

Step one:

Git clone https://github.com/golang/net.git $GOPATH/src/github.com/golang/netgit clone https://github.com/golang/sys.git $GOPATH/src/github.com/golang/sysgit clone https://github.com/golang/tools.git $GOPATH/src/github.com/golang/toolsgit clone https://github.com/golang/lint.git $GOPATH/src/github.com/golang/lint...

You can get more information by viewing https://github.com/golang

Step 2:

Put the net, sys, and tools folders in the $GOPATH/src/golang.org/x directory. Or you can create a soft connection under Linux:

Ln-s $GOPATH/src/github.com/golang $GOPATH/src/golang.org/x

Note: if there is a problem with the above path indicated by the environment variable, you can use other path tables (such as absolute path)

.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report