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

./bootstrap.sh error, your help is desired!! #44

Closed
lihanhui opened this issue Dec 8, 2014 · 2 comments
Closed

./bootstrap.sh error, your help is desired!! #44

lihanhui opened this issue Dec 8, 2014 · 2 comments

Comments

@lihanhui
Copy link

lihanhui commented Dec 8, 2014

go build -o bin/cconfig ./cmd/cconfig
cmd/cconfig/main.go:16:2: cannot find package "github.com/c4pt0r/cfg" in any of:
/usr/local/go/src/github.com/c4pt0r/cfg (from $GOROOT)
($GOPATH not set)
cmd/cconfig/dashboard.go:15:2: cannot find package "github.com/codegangsta/martini-contrib/binding" in any of:
/usr/local/go/src/github.com/codegangsta/martini-contrib/binding (from $GOROOT)
($GOPATH not set)
cmd/cconfig/dashboard.go:16:2: cannot find package "github.com/codegangsta/martini-contrib/render" in any of:
/usr/local/go/src/github.com/codegangsta/martini-contrib/render (from $GOROOT)
($GOPATH not set)
cmd/cconfig/action.go:10:2: cannot find package "github.com/docopt/docopt-go" in any of:
/usr/local/go/src/github.com/docopt/docopt-go (from $GOROOT)
($GOPATH not set)
cmd/cconfig/migrate_helper.go:13:2: cannot find package "github.com/garyburd/redigo/redis" in any of:
/usr/local/go/src/github.com/garyburd/redigo/redis (from $GOROOT)
($GOPATH not set)
cmd/cconfig/dashboard.go:18:2: cannot find package "github.com/go-martini/martini" in any of:
/usr/local/go/src/github.com/go-martini/martini (from $GOROOT)
($GOPATH not set)
cmd/cconfig/action.go:7:2: cannot find package "github.com/juju/errors" in any of:
/usr/local/go/src/github.com/juju/errors (from $GOROOT)
($GOPATH not set)
cmd/cconfig/dashboard.go:19:2: cannot find package "github.com/martini-contrib/cors" in any of:
/usr/local/go/src/github.com/martini-contrib/cors (from $GOROOT)
($GOPATH not set)
cmd/cconfig/action.go:11:2: cannot find package "github.com/ngaut/logging" in any of:
/usr/local/go/src/github.com/ngaut/logging (from $GOROOT)
($GOPATH not set)
cmd/cconfig/dashboard.go:8:2: cannot find package "github.com/ngaut/zkhelper" in any of:
/usr/local/go/src/github.com/ngaut/zkhelper (from $GOROOT)
($GOPATH not set)
cmd/cconfig/dashboard_apis.go:13:2: cannot find package "github.com/nu7hatch/gouuid" in any of:
/usr/local/go/src/github.com/nu7hatch/gouuid (from $GOROOT)
($GOPATH not set)
cmd/cconfig/action.go:8:2: cannot find package "github.com/wandoulabs/codis/pkg/models" in any of:
/usr/local/go/src/github.com/wandoulabs/codis/pkg/models (from $GOROOT)
($GOPATH not set)
cmd/cconfig/dashboard_apis.go:10:2: cannot find package "github.com/wandoulabs/codis/pkg/utils" in any of:
/usr/local/go/src/github.com/wandoulabs/codis/pkg/utils (from $GOROOT)
($GOPATH not set)
make: *** [build] Error 1

@lihanhui
Copy link
Author

lihanhui commented Dec 8, 2014

go build -o bin/codis-proxy ./cmd/proxy
cmd/proxy/main.go:14:2: cannot find package "github.com/wandoulabs/codis/pkg/proxy/router" in any of:
/usr/local/go/src/github.com/wandoulabs/codis/pkg/proxy/router (from $GOROOT)
/root/go/src/github.com/wandoulabs/codis/pkg/proxy/router (from $GOPATH)
cmd/proxy/main.go:15:2: cannot find package "github.com/wandoulabs/codis/pkg/utils" in any of:
/usr/local/go/src/github.com/wandoulabs/codis/pkg/utils (from $GOROOT)
/root/go/src/github.com/wandoulabs/codis/pkg/utils (from $GOPATH)
make: *** [build-proxy] Error 1
[root@localhost codis-master]# ll /usr/local/go/src/github.com/wandoulabs/codis/pkg/proxy
ls: cannot access /usr/local/go/src/github.com/wandoulabs/codis/pkg/proxy: No such file or directory
[root@localhost codis-master]# ll /usr/local/go/src/github.com/wandoulabs/codis/pkg/
ls: cannot access /usr/local/go/src/github.com/wandoulabs/codis/pkg/: No such file or directory
[root@localhost codis-master]# ll /usr/local/go/src/github.com/wandoulabs/codis/
ls: cannot access /usr/local/go/src/github.com/wandoulabs/codis/: No such file or directory
[root@localhost codis-master]# ll /usr/local/go/src/github.com/wandoulabs/
ls: cannot access /usr/local/go/src/github.com/wandoulabs/: No such file or directory

Version: master

@ngaut
Copy link
Contributor

ngaut commented Dec 8, 2014

you should set GOPATH first, for example
export GOPATH=$HOME/go

then follow the tutorial:
go get github.com/wandoulabs/codis
cd /usr/local/go/src/github.com/wandoulabs/codis
./bootstrap.sh

@ngaut ngaut closed this as completed Dec 9, 2014
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

2 participants