I am trying to build the Ethereum Geth client node on an Ubuntu 14.04 LTS box. I am using the 2017.3 Goland client. When I try to compile the project I get the errors below:
interfaces.go:25:2: cannot find package "github.com/ethereum/go-ethereum/common" in any of:
/usr/local/go/src/github.com/ethereum/go-ethereum/common (from $GOROOT)
/home/robert/go/src/github.com/ethereum/go-ethereum/common (from $GOPATH)
interfaces.go:26:2: cannot find package "github.com/ethereum/go-ethereum/core/types" in any of:
/usr/local/go/src/github.com/ethereum/go-ethereum/core/types (from $GOROOT)
/home/robert/go/src/github.com/ethereum/go-ethereum/core/types
(from $GOPATH)
I have checked my GOPATH which has go-ethereum as its root. I do see a common directory underneath it but not types directory. I checked the Geth repo on GitHub:
And I don't see a sibling common or types project. Does anyone know how to fix this problem?
make geth
you are not going to have this problem, as all the dependences are unpacked into./vendor
directory and you don't need any GOPATH setting by hand. If you are doing a custom ethereum build then you should familiarize yourself withGo
s directory structure, this is basic stuff in golang – Nulik Feb 18 '18 at 1:55make geth
, that's all you have to do – Nulik Feb 18 '18 at 1:57