istanbul-tools icon indicating copy to clipboard operation
istanbul-tools copied to clipboard

Project build issues

Open AndriianChestnykh opened this issue 7 years ago • 6 comments

There are these errors when trying to build the project with "make" command:

cmd/istanbul/main.go:37: cannot use extra.ExtraCommand (type "github.com/getamis/istanbul-tools/vendor/github.com/urfave/cli".Command) as type "github.com/urfave/cli".Command in array or slice literal cmd/istanbul/main.go:38: cannot use setup.SetupCommand (type "github.com/getamis/istanbul-tools/vendor/github.com/urfave/cli".Command) as type "github.com/urfave/cli".Command in array or slice literal cmd/istanbul/main.go:39: cannot use []"github.com/urfave/cli".Command literal (type []"github.com/urfave/cli".Command) as type []"github.com/getamis/istanbul-tools/vendor/github.com/urfave/cli".Command in assignment make: *** [istanbul] Error 2

AndriianChestnykh avatar Dec 26 '17 13:12 AndriianChestnykh

the following still works: go get github.com/getamis/istanbul-tools/cmd/istanbul, however then it is installed under $GOPATH.

coeniebeyers avatar Jan 05 '18 15:01 coeniebeyers

Thank you, it helped me to install istanbul-tools under $GOPATH. However it when I try to use it it does not seem to work properly. For example in my Mac i get this:

$ istanbul --help Killed: 9

or this

$ istanbul extra encode --config ./config.toml Killed: 9

AndriianChestnykh avatar Jan 05 '18 22:01 AndriianChestnykh

Hi @AndriianChestnykh, I'm experiencing that same problem - have you found a solution?

marcdk avatar Apr 24 '18 09:04 marcdk

Setting the build flags worked for me go get -ldflags=-s github.com/getamis/istanbul-tools/cmd/istanbul

Apparently, this is no longer an issue with go 1.8.1

Reference: https://github.com/shirou/gopsutil/issues/339

marcdk avatar Apr 24 '18 10:04 marcdk

I had the same issue. The compiled file was in the go binaries. On Mac, these are found in:

/Users/[YOURUSERNAME]/go/bin/

Adding this line to your bash profile should make them accessible.

# manually added Istanbul-Consensus Tools
export PATH="/Users/[YOURUSERNAME]/go/bin:$PATH"

Hope this helps the next one looking for a solution!

Kl4rity avatar Jun 24 '18 11:06 Kl4rity

I'm still facing an issue in it. I use UBUNTU 16.04. I tried exporting the $PATH and setting the build flags too.

punit-agarwal avatar Jul 02 '18 11:07 punit-agarwal