Go install fails with error: no install location for directory xxx outside GOPATH

前端 未结 12 1710
醉话见心
醉话见心 2020-12-12 11:22
~/src/go-statsd-client> echo $GOPATH
/Users/me/gopath
~/src/go-statsd-client> echo $GOROOT
/usr/local/Cellar/go/1.1.1\\
~/src/go-statsd-client> go install
g         


        
12条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-12 12:06

    In my case (OS X) it was because I have set GOPATH to /home/username/go (as per the book) instead of /Users/username/go

提交回复
热议问题