`go get` 未安装 `k8s-oidc-helper` 包。

huangapple go评论104阅读模式
英文:

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

huangapple
  • 本文由 发表于 2017年8月2日 12:33:41
  • 转载请务必保留本文链接:https://go.coder-hub.com/45451539.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定