小编典典

去不安装软件包k8s-oidc-helper

go

无法使用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包装错误


阅读 261

收藏
2020-07-02

共1个答案

小编典典

请确保中k8s-oidc- helper存在/usr/share/go/bin,并且/usr/share/go/bin已经添加到PATH环境变量中。

检查:

ls /usr/share/go/bin | grep k8s-oidc-helper

echo $PATH | grep /usr/share/go/bin
2020-07-02