Got the error while running a golang for the first time in mac

go build -i cause open /usr/local/go/pkg/darwin_amd64/runtime/cgo.a: permission denied


Navigate to the folder and type in the following command

sudo chmod -R 777 /usr/local/go, which will prompt to type in the mac password.





No comments:

 Python Basics How to check the version of Python interpreter mac terminal

Popular in last 30 days