Go can't find common and types package when building Geth client node project?

Answered
 

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?

 

Target Card Balance Now

0
1 comment

Hello,

Please see https://golang.org/doc/gopath_code

Where's the project located on your PC? What're your GOPATH & GOROOT variables values? What happens if you navigate to the import area in GoLand, press Alt+Enter and execute go get <...>?

What version of Go are you using (go version)?

0

Please sign in to leave a comment.