Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project build issues #103

Open
AndriianChestnykh opened this issue Dec 26, 2017 · 6 comments
Open

Project build issues #103

AndriianChestnykh opened this issue Dec 26, 2017 · 6 comments

Comments

@AndriianChestnykh
Copy link

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

@coeniebeyers
Copy link

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

@AndriianChestnykh
Copy link
Author

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

@marcdk
Copy link

marcdk commented Apr 24, 2018

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

@marcdk
Copy link

marcdk commented Apr 24, 2018

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:
shirou/gopsutil#339

@Kl4rity
Copy link

Kl4rity commented Jun 24, 2018

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!

@punit-agarwal
Copy link

punit-agarwal commented Jul 2, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants