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
//此处是报错内容