英文:
go get not installing package k8s-oidc-helper
问题
无法使用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
命令,它显示错误命令未找到。**
我认为这是与go
软件包有关的错误。
英文:
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
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
答案1
得分: 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
英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论