15 安装 geth , 执行make geth 时 有报错,求大佬帮忙看下,尝试了各种办法,还是出现这个问题。

1、安装 go 环境 用的是这个教程 https://www.jianshu.com/p/8bfa6d93eb03

2、安装 geth

`

LGQD:~ lvguoqing$ go get github.com/ethereum/go-ethereum
# cd .; git clone https://github.com/ethereum/go-ethereum /Users/lvguoqing/go/src/github.com/ethereum/go-ethereum
Cloning into '/Users/lvguoqing/go/src/github.com/ethereum/go-ethereum'...
fatal: unable to access 'https://github.com/ethereum/go-ethereum/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 
LGQD:~ lvguoqing$ git clone https://github.com/ethereum/go-ethereum.git
Cloning into 'go-ethereum'...
remote: Enumerating objects: 99088, done.
remote: Counting objects: 100% (278/278), done.
remote: Compressing objects: 100% (223/223), done.
remote: Total 99088 (delta 103), reused 162 (delta 54), pack-reused 98810
Receiving objects: 100% (99088/99088), 156.10 MiB | 126.00 KiB/s, done.
Resolving deltas: 100% (64312/64312), done.

LGQD:~ lvguoqing$ cd go-ethereum

LGQD:go-ethereum lvguoqing$ make geth
env GO111MODULE=on go run build/ci.go install ./cmd/geth
build/ci.go:60:2: cannot find package "github.com/cespare/cp" in any of:
    /usr/local/go/src/github.com/cespare/cp (from $GOROOT)
    /Users/lvguoqing/go/src/github.com/cespare/cp (from $GOPATH)
build/ci.go:61:2: cannot find package "github.com/ethereum/go-ethereum/crypto/signify" in any of:
    /usr/local/go/src/github.com/ethereum/go-ethereum/crypto/signify (from $GOROOT)
    /Users/lvguoqing/go/src/github.com/ethereum/go-ethereum/crypto/signify (from $GOPATH)
build/ci.go:62:2: cannot find package "github.com/ethereum/go-ethereum/internal/build" in any of:
    /usr/local/go/src/github.com/ethereum/go-ethereum/internal/build (from $GOROOT)
    /Users/lvguoqing/go/src/github.com/ethereum/go-ethereum/internal/build (from $GOPATH)
build/ci.go:63:2: cannot find package "github.com/ethereum/go-ethereum/params" in any of:
    /usr/local/go/src/github.com/ethereum/go-ethereum/params (from $GOROOT)
    /Users/lvguoqing/go/src/github.com/ethereum/go-ethereum/params (from $GOPATH)
make: *** [geth] Error 1
//此处是报错内容
请先 登录 后评论

3 个回答

Tiny熊
  擅长:智能合约,以太坊
请先 登录 后评论
Zziko·Wong
请先 登录 后评论
多哥喵
请先 登录 后评论
  • 3 关注
  • 0 收藏,5413 浏览
  • Eleven 提出于 2021-05-19 00:49