Compile network function services in free5gc failed

Hi,team
When I was building amf,error occured like this:

root@ubuntu:~/free5gc# make amf
Start building amf....`Preformatted text`
cd NFs/amf && \
CGO_ENABLED=0 go build -ldflags "-X github.com/free5gc/version.VERSION=v3.0.5 -X github.com/free5gc/version.BUILD_TIME=2021-05-25T02:27:36Z -X 
github.com/free5gc/version.COMMIT_HASH=452f43a6 -X 
github.com/free5gc/version.COMMIT_TIME=2021-01-30T15:33:15Z" -o /root/free5gc/bin/amf amf.go
/bin/sh: 2: go: not found
Makefile:43: recipe for target 'bin/amf' failed
make: *** [bin/amf] Error 127
root@ubuntu:~/free5gc#

It seems that your Makefile cannot find go command. Check if you have install go compiler and put it into your environment $PATH.

Thank you!There is indeed a problem with the go environment, but when I repaired it, the following error appeared again.

image

I think you may be in China. The great wall of china have banned go’s third-party library URL. Search some keyword about go proxy in china.

Sunnyi - I am wondering whether you resolved ? I am getting the same error. Any help is appreciated