1. Official download of the compiler
1. Go installation package download
2. https://golang.org/dl/ (unsuccessful access)
After the compilation tool is downloaded, configure environment variables in the .profile file:
export GOROOT=/root/go
export GOPATH=/root/go/work
export PATH=$PATH:/root/go/bin
Reference URL: Compilation of frp intranet penetration artifact
Two, the compilation encounters a problem
go: github.com/armon/[email protected]: Get "https://proxy.golang.org/github.com/armon/go-socks5/@v/v0.0.0-20160902184237-e75332964ef5.mod": dial tcp 34.64.4.17:443: i/o timeout
make: *** [Makefile.cross-compiles:10: app] Error 1
You can refer to this: Goproxy China , you can basically find the answer after reading this link. Add the following in Makefile.cross-compiles:
Just recompile it.