wsl2 ubuntu下配置go执行make init 错误 /bin/bash line 1 go command not found
我原来的配置是将www设置在mnt/d/www/goland
export GOPATH=/mnt/d/www/goland
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
后面改为了下面这样,然后重新拉取了项目,就可以了。
export GOPATH=/home/用户名/go
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin