8

配置golang环境

 3 years ago
source link: https://learnblockchain.cn/question/1761
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
配置golang环境 | 登链社区 | 技术问答

配置golang环境

想在 Ubuntu 虚拟机里配置一下 golang,输入 make geth 后出现这么一个错误,求大佬解答

env GO111MODULE=on go run build/ci.go install ./cmd/geth
env: "go": 没有那个文件或目录
Makefile:16: recipe for target 'geth' failed
make: *** [geth] Error 127

Tiny熊 - 布道者 2021-01-13 08:29

  擅长:智能合约,以太坊

go 不在环境变量里么?

之前配置了环境变量了 root@nodeA-virtual-machine:~# source /etc/profile root@nodeA-virtual-machine:~# go env GOARCH="amd64" GOBIN="/home/nodea/workspace/bin" GOCACHE="/root/.cache/go-build" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/nodea/workspace" GOPROXY="" GORACE="" GOROOT="/usr/local/go" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64" GCCGO="gccgo" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build527125646=/tmp/go-build -gno-record-gcc-switches" 但之后执行不通,就这里不清楚为什么。

  • 2021-01-13 14:55
您需要登录后才可以回答问题,登录 或者 注册

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK