wiki
wiki copied to clipboard
make build cannot find package "github.com/nebulasio/go-nebulas/cmd/console"
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)
我已经设置了 gopath
cd $GOPATH/src/github.com/nebulasio/go-nebulas
为什么编译的时候 他找的路劲却不是我设置的路劲呢?
/Users/wupan/go/src/github.com/nebulasio/go-nebulas/cmd/console (from $GOPATH)
兄弟我跟你同样的问题 昨天搞了我一天 我没弄出来是为什么。 不知道你现在解决了没 ,我也不知道是为什么。 还有个问题看你有吗 就是在非root下设置的go的path到了 root环境下就不行了 得再设置一个。。。 我记得以前我都不需要这么搞的。
我也遇到同样的问题
You may find help in https://www.reddit.com/r/nasdev/comments/8gsoqc/installing_nebulas_on_ubuntu/
我也遇到这样的问题,有解决了的兄弟吗
你好,此版本为星云旧版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)