Command not found go — on Mac after installing Go

后端 未结 7 2064
逝去的感伤
逝去的感伤 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 19:17

    This is what i did on my mac:

    opened the file ~/.zshrc using sudo nano ~/.zshrc then pasted

    export PATH=$PATH:/usr/local/go/bin save and exit(ctrl + s, ctrl + x then press y) then ran

    . ~/.zshrc go was up and running, verified by typing just go in command line.

    0 讨论(0)
提交回复
热议问题