nebulasio / wiki

This repository is out of date, please check the new wiki:
http://wiki.nebulas.io/en/latest/
GNU General Public License v3.0
421 stars 154 forks source link

make build cannot find package "github.com/nebulasio/go-nebulas/cmd/console" #89

Open 13142025891 opened 6 years ago

13142025891 commented 6 years ago

wupandeMacBook-Pro:wupan wupan$ export GOPATH=/Users/wupan/Desktop/Workspace wupandeMacBook-Pro:wupan wupan$ env GOPATH=/Users/wupan/Desktop/Workspace _=/usr/bin/env

error sudo make build cd cmd/neb; go build -ldflags "-X main.version=1.0.1 -X main.commit=373bc29bce8323e3960fae26e1072f9560f1b8e4 -X main.branch=master -X main.compileAt=date +%s" -o ../../neb-373bc29bce8323e3960fae26e1072f9560f1b8e4accountcmd.go:25:2: cannot find package "github.com/nebulasio/go-nebulas/cmd/console" in any of: /usr/local/Cellar/go/1.10.2/libexec/src/github.com/nebulasio/go-nebulas/cmd/console (from $GOROOT) /Users/wupan/go/src/github.com/nebulasio/go-nebulas/cmd/console (from $GOPATH) accountcmd.go:26:2: cannot find package "github.com/nebulasio/go-nebulas/core" in any of: /usr/local/Cellar/go/1.10.2/libexec/src/github.com/nebulasio/go-nebulas/core (from $GOROOT) /Users/wupan/go/src/github.com/nebulasio/go-nebulas/core (from $GOPATH) configcmd.go:24:2: cannot find package "github.com/nebulasio/go-nebulas/neblet" in any of: /usr/local/Cellar/go/1.10.2/libexec/src/github.com/nebulasio/go-nebulas/neblet (from $GOROOT) /Users/wupan/go/src/github.com/nebulasio/go-nebulas/neblet (from $GOPATH) crashclient.go:31:2: cannot find package "github.com/nebulasio/go-nebulas/neblet/pb" in any of: /usr/local/Cellar/go/1.10.2/libexec/src/github.com/nebulasio/go-nebulas/neblet/pb (from $GOROOT) /Users/wupan/go/src/github.com/nebulasio/go-nebulas/neblet/pb (from $GOPATH) misccmd.go:26:2: cannot find package "github.com/nebulasio/go-nebulas/net" in any of: /usr/local/Cellar/go/1.10.2/libexec/src/github.com/nebulasio/go-nebulas/net (from $GOROOT) /Users/wupan/go/src/github.com/nebulasio/go-nebulas/net (from $GOPATH) networkcmd.go:25:2: cannot find package "github.com/nebulasio/go-nebulas/util" in any of: /usr/local/Cellar/go/1.10.2/libexec/src/github.com/nebulasio/go-nebulas/util (from $GOROOT) /Users/wupan/go/src/github.com/nebulasio/go-nebulas/util (from $GOPATH) crashclient.go:32:2: cannot find package "github.com/nebulasio/go-nebulas/util/logging" in any of: /usr/local/Cellar/go/1.10.2/libexec/src/github.com/nebulasio/go-nebulas/util/logging (from $GOROOT) /Users/wupan/go/src/github.com/nebulasio/go-nebulas/util/logging (from $GOPATH) crashclient.go:33:2: cannot find package "github.com/sirupsen/logrus" in any of: /usr/local/Cellar/go/1.10.2/libexec/src/github.com/sirupsen/logrus (from $GOROOT) /Users/wupan/go/src/github.com/sirupsen/logrus (from $GOPATH) accountcmd.go:27:2: cannot find package "github.com/urfave/cli" in any of: /usr/local/Cellar/go/1.10.2/libexec/src/github.com/urfave/cli (from $GOROOT) /Users/wupan/go/src/github.com/urfave/cli (from $GOPATH)

13142025891 commented 6 years ago

我已经设置了 gopath cd $GOPATH/src/github.com/nebulasio/go-nebulas
为什么编译的时候 他找的路劲却不是我设置的路劲呢? /Users/wupan/go/src/github.com/nebulasio/go-nebulas/cmd/console (from $GOPATH)

smalloneSAMA commented 6 years ago

兄弟我跟你同样的问题 昨天搞了我一天 我没弄出来是为什么。 不知道你现在解决了没 ,我也不知道是为什么。 还有个问题看你有吗 就是在非root下设置的go的path到了 root环境下就不行了 得再设置一个。。。 我记得以前我都不需要这么搞的。

eecszc commented 6 years ago

我也遇到同样的问题

ChengOrangeJu commented 6 years ago

You may find help in https://www.reddit.com/r/nasdev/comments/8gsoqc/installing_nebulas_on_ubuntu/

FantasticPerson commented 6 years ago

我也遇到这样的问题,有解决了的兄弟吗

weiht12 commented 5 years ago

你好,此版本为星云旧版wiki,欢迎将您的问题提交星云新版wiki,以便于及时与星云开发人员及其他社区开发者进行交流。同时,参与wiki的编辑维护工作还会有奖励哦。新版wiki链接:https://wiki.nebulas.io/en/latest/ (英文);https://wiki.nebulas.io/zh_CN/latest/ (中文) Hello, this version is the nebulas old wiki (later stop maintenance), welcome to submit your question to the new nebulas wiki, in order to get timely answers. At the same time, there will be rewards for editing and maintaining the wiki. New wiki link: https://wiki.nebulas.io/en/latest/ (English); https://wiki.nebulas.io/zh_CN/latest/ (Chinese)