ubuntu 不能编译 make geth-windows-amd64

2019-01-02 23:18发布

lab@labVM:~/go-ethereum$ make geth-windows-amd64
build/env.sh go run build/ci.go xgo -- --go=latest --targets=windows/amd64 -v ./cmd/geth
>>> /usr/local/go/bin/go get github.com/karalabe/xgo
>>> /home/lab/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/build/bin/xgo -ldflags -X main.gitCommit=99e1a5e0fb6f238319042dd2c4c8468dc786a4b7 --go=latest --targets=windows/amd64 -v --dest /home/lab/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/build/bin ./cmd/geth
Checking docker installation...
Client:
 Version:      17.03.2-ce
 API version:  1.27
 Go version:   go1.6.2
 Git commit:   f5ec1e2
 Built:        Thu Jul  5 23:07:48 2018
 OS/Arch:      linux/amd64
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.27/version: dial unix /var/run/docker.sock: connect: permission denied
2018/08/20 23:18:45 Failed to check docker installation: exit status 1.
util.go:45: exit status 1
exit status 1
Makefile:148: recipe for target 'geth-windows-amd64' failed
make: *** [geth-windows-amd64] Error 1

ubuntu16.04下编译windows的geth-windows-amd64总是这个错误,

没搜到结果,

这是什么原因?

标签: ubuntu geth make
1条回答
倾城 Initia
2楼-- · 2019-01-02 23:30

docker 装了吗?

查看更多
登录 后发表回答