去没有安装包k8s-oidc-helper

时间:2017-08-02 04:33:41

标签: go kubernetes oidc

无法使用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

有些错误

1 个答案:

答案 0 :(得分: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
相关问题