问题描述
无法使用go安装软件包。
我想安装k8s-oidc-helper软件包。根据安装指南,我必须安装并运行k8s-oidc-helper命令。但是当我尝试它时,它说没有找到命令k8s-oidc-helper。以下是我试过的命令:
Unable to install package with go.I want to install the k8s-oidc-helper package. As per the install guide i had to install go and run the k8s-oidc-helper command. But when i try it, it says command k8s-oidc-helper not found. Below are the commands I tried
sudo apt install golang-go
export $GOPATH=/usr/share/go
sudo -E go get github.com/micahhausler/k8s-oidc-helper
但是在此之后,如果我尝试 k8s-oidc-helper命令,它说错误命令未找到。
我假设它有一些错误, code> go package
But after this if i try k8s-oidc-helper command it says error command not found.
I assume it is some error with go
package
推荐答案
请确保 k8s-oidc-helper
存在于 / usr / share / go / bin
中, / usr / share / go / bin
已添加到PATH环境变量中。
Please make sure that the k8s-oidc-helper
is exists in /usr/share/go/bin
, and /usr/share/go/bin
has been added into PATH environment variable.
检查:
Check:
ls /usr/share/go/bin | grep k8s-oidc-helper
echo $PATH | grep /usr/share/go/bin
这篇关于去不要安装包k8s-oidc-helper的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!