Command not found go — on Mac after installing Go

后端 未结 7 2061
逝去的感伤
逝去的感伤 2021-02-03 18:24

I want to use Go, but I\'m having trouble running the go command. I installed go1.5.2 darwin/amd64, but when I run the command go version, I get an error in the ter

7条回答
  •  死守一世寂寞
    2021-02-03 18:58

    For bash, you should edit the .bashrc file and add the abobe mentioned line:

    export PATH=$PATH:/usr/local/go/bin
    

提交回复
热议问题