wsl2 ubuntu下配置go执行make init 错误 /bin/bash line 1 go command not found

我原来的配置是将www设置在mnt/d/www/goland

bash 复制代码
export GOPATH=/mnt/d/www/goland
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin

后面改为了下面这样,然后重新拉取了项目,就可以了。

bash 复制代码
export GOPATH=/home/用户名/go
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
相关推荐
BothSavage1 小时前
Ubuntu-8卡H20服务器升级nvidia驱动+cuda版本
linux·服务器·ubuntu·gpu·nvidia·cuda·nvcc
h7997103 小时前
go资深之路笔记(八) 基准测试
golang·压力测试
本贾尼4 小时前
Linux系统下的终端,会话,shell,bash,进程组这几个概念的关系。
linux·服务器·网络·ubuntu·bash
zhuyan10813 小时前
【远程桌面】在ubuntu中安装远程桌面
ubuntu
Achou.Wang15 小时前
源码分析 golang bigcache 高性能无 GC 开销的缓存设计实现
开发语言·缓存·golang
Yeats_Liao17 小时前
Go语言技术与应用(二):分布式架构设计解析
开发语言·分布式·golang
蓝婴天使17 小时前
基于 React + Go + PostgreSQL + Redis 的管理系统开发框架
react.js·postgresql·golang
脚踏实地的大梦想家17 小时前
【Go】P6 Golang 基础:流程控制
开发语言·golang
LJ-SEU17 小时前
win-ubuntu网络转发
linux·网络·ubuntu
QT 小鲜肉17 小时前
【个人成长笔记】在Ubuntu中的Linux系统安装 anaconda 及其相关终端命令行
linux·笔记·深度学习·学习·ubuntu·学习方法