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

前端 未结 12 1709
醉话见心
醉话见心 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:19

    For any OS X users and future me, you also need to set GOBIN to avoid this confusing message on install and go get

    mkdir bin 
    export GOBIN=$GOPATH/bin
    

提交回复
热议问题