英文:
k8s oidc issues with helper package (k8s-oidc-helper: command not found)
问题
我在使用安装了go的k8s-oidc-helper包时遇到了问题。然而,当我运行其中的任何命令时,它都会显示“command not found”错误。我在Ubuntu 16.04虚拟机上运行此命令。我该如何解决这个问题?
英文:
I am facing issues with k8s-oidc-helper package installed with go. However when i run any of the commands with it it gives command not found error. I am running this on ubuntu 16.04 VM. How can i resolve this?
答案1
得分: 0
我已解决了这个问题。go
的路径设置不正确。
我检查了 go
的环境,并相应地设置了路径。
export GOPATH=/usr/lib/go
export PATH=$PATH:$GOPATH/bin
sudo go get -u github.com/micahhausler/k8s-oidc-helper
现在助手包可以正常工作了。
英文:
I have resolved this issue. The path set was incorrect for `go'
I checked the environment of go and accordingly set the path.
export GOPATH=/usr/lib/go
export PATH=$PATH:$GOPATH/bin
sudo go get -u github.com/micahhausler/k8s-oidc-helper
now the helper package works
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论