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总是这个错误,
没搜到结果,
这是什么原因?
docker 装了吗?
装了
@还没有: docker ps -a试试
@Uteki:
lab@labVM:~$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
lab@labVM:~$
@还没有: 那就是没权限,试试sudo,或者把当前用户加到docker组
@Uteki: 要下载好多虚拟机,有的几十M。有的几百M。
有时还是卡住。速度也好慢,哎