# k8s.io/kubernetes/cmd/kubectl
loadinternal: cannot find runtime/cgo
# k8s.io/kubernetes/cmd/kubeadm
loadinternal: cannot find runtime/cgo
# k8s.io/kubernetes/cmd/kube-proxy
loadinternal: cannot find runtime/cgo
# k8s.io/kubernetes/cmd/kube-scheduler
loadinternal: cannot find runtime/cgo
# k8s.io/kubernetes/cmd/kube-apiserver
loadinternal: cannot find runtime/cgo
# k8s.io/kubernetes/cmd/kube-controller-manager
loadinternal: cannot find runtime/cgo
# k8s.io/kubernetes/cluster/gce/gci/mounter
loadinternal: cannot find runtime/cgo
^Cmake: *** [Makefile:93: all] Interrupt
go 的环境参数如下
hj@ubuntu:~/Desktop/kubernetes/kubernetes-1.20.2$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/hj/.cache/go-build"
GOENV="/home/hj/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/hj/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/hj/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.20.4"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/hj/Desktop/kubernetes/kubernetes-1.20.2/go.mod"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build4160134575=/tmp/go-build -gno-record-gcc-switches"
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.