无法使用go安装软件包。我想安装k8s-oidc-helper软件包。根据安装指南,我必须安装go并运行k8s-oidc- helper命令。但是当我尝试时,它说找不到命令k8s-oidc-helper。以下是我尝试的命令
sudo apt install golang-go export $GOPATH=/usr/share/go sudo -E go get github.com/micahhausler/k8s-oidc-helper
但是在这之后如果我尝试 k8s-oidc-helper command it says error command not found. 我认为这是go包装错误
k8s-oidc-helper command it says error command not found.
go
请确保中k8s-oidc- helper存在/usr/share/go/bin,并且/usr/share/go/bin已经添加到PATH环境变量中。
k8s-oidc- helper
/usr/share/go/bin
检查:
ls /usr/share/go/bin | grep k8s-oidc-helper echo $PATH | grep /usr/share/go/bin