-1
無法用go安裝包。 我想安裝k8s-oidc-helper軟件包。根據安裝指南,我必須安裝並運行k8s-oidc-helper命令。但是當我嘗試它時,它說沒有找到命令k8s-oidc-helper。下面是命令我試過go得不到安裝包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
包
實際上它是在/usr/share/go/src/github.com/micahhausler/k8s-oidc-helper存在。能否請你幫忙。沒有bin目錄 – NSP
@NSP嘗試'sudo -E去安裝github.com/micahhausler/k8s-oidc-helper',然後用'ls/usr/share/go/bin | grep k8s-oidc-helper'。 –
'須藤-E去安裝github.com/micahhausler/k8s-oidc-helper, 無法加載包:包github.com/micahhausler/k8s-oidc-helper ,:找不到包「github.com/micahhausler/ k8s-oidc-helper「中的任何一個:」 \t /usr/lib/go-1.6/src/github.com/micahhausler/k8s-oidc- src/github.com/micahhausler/k8s-oidc-helper,(來自$ GOPATH)' – NSP