[GH-ISSUE #15] Building failes with Debian Stretch #9

Closed
opened 2026-02-26 12:33:42 +03:00 by kerem · 2 comments
Owner

Originally created by @bugrabbit on GitHub (Feb 22, 2019).
Original GitHub issue: https://github.com/cbeuw/Cloak/issues/15

When trying to build the package on Debian Stretch using the command make server as stated in the readme,md, the build fails with this error message:

make server
mkdir -p build
go build -ldflags "-X main.version=master(cffee14)" ./cmd/ck-server
cmd/ck-server/keygen.go:6:2: cannot find package "github.com/cbeuw/Cloak/internal/ecdh" in any of:
/usr/lib/go-1.7/src/github.com/cbeuw/Cloak/internal/ecdh (from $GOROOT)
($GOPATH not set)
cmd/ck-server/ck-server.go:15:2: cannot find package "github.com/cbeuw/Cloak/internal/multiplex" in any of:
/usr/lib/go-1.7/src/github.com/cbeuw/Cloak/internal/multiplex (from $GOROOT)
($GOPATH not set)
cmd/ck-server/ck-server.go:16:2: cannot find package "github.com/cbeuw/Cloak/internal/server" in any of:
/usr/lib/go-1.7/src/github.com/cbeuw/Cloak/internal/server (from $GOROOT)
($GOPATH not set)
cmd/ck-server/ck-server.go:17:2: cannot find package "github.com/cbeuw/Cloak/internal/server/usermanager" in any of:
/usr/lib/go-1.7/src/github.com/cbeuw/Cloak/internal/server/usermanager (from $GOROOT)
($GOPATH not set)
cmd/ck-server/ck-server.go:18:2: cannot find package "github.com/cbeuw/Cloak/internal/util" in any of:
/usr/lib/go-1.7/src/github.com/cbeuw/Cloak/internal/util (from $GOROOT)
($GOPATH not set)
Makefile:15: recipe for target 'server' failed
make: *** [server] Error 1

Originally created by @bugrabbit on GitHub (Feb 22, 2019). Original GitHub issue: https://github.com/cbeuw/Cloak/issues/15 When trying to build the package on Debian Stretch using the command `make server` as stated in the readme,md, the build fails with this error message: > make server mkdir -p build go build -ldflags "-X main.version=master(cffee14)" ./cmd/ck-server cmd/ck-server/keygen.go:6:2: cannot find package "github.com/cbeuw/Cloak/internal/ecdh" in any of: /usr/lib/go-1.7/src/github.com/cbeuw/Cloak/internal/ecdh (from $GOROOT) ($GOPATH not set) cmd/ck-server/ck-server.go:15:2: cannot find package "github.com/cbeuw/Cloak/internal/multiplex" in any of: /usr/lib/go-1.7/src/github.com/cbeuw/Cloak/internal/multiplex (from $GOROOT) ($GOPATH not set) cmd/ck-server/ck-server.go:16:2: cannot find package "github.com/cbeuw/Cloak/internal/server" in any of: /usr/lib/go-1.7/src/github.com/cbeuw/Cloak/internal/server (from $GOROOT) ($GOPATH not set) cmd/ck-server/ck-server.go:17:2: cannot find package "github.com/cbeuw/Cloak/internal/server/usermanager" in any of: /usr/lib/go-1.7/src/github.com/cbeuw/Cloak/internal/server/usermanager (from $GOROOT) ($GOPATH not set) cmd/ck-server/ck-server.go:18:2: cannot find package "github.com/cbeuw/Cloak/internal/util" in any of: /usr/lib/go-1.7/src/github.com/cbeuw/Cloak/internal/util (from $GOROOT) ($GOPATH not set) Makefile:15: recipe for target 'server' failed make: *** [server] Error 1
kerem closed this issue 2026-02-26 12:33:42 +03:00
Author
Owner

@cbeuw commented on GitHub (Feb 22, 2019):

$GOPATH not set

Please refer to https://golang.org/doc/install#tarball to set your GOPATH

Once you've done that, please also go get the dependencies github.com/boltdb/bolt and github.com/boltdb/bolt

<!-- gh-comment-id:466584356 --> @cbeuw commented on GitHub (Feb 22, 2019): > $GOPATH not set Please refer to https://golang.org/doc/install#tarball to set your GOPATH Once you've done that, please also go get the dependencies github.com/boltdb/bolt and github.com/boltdb/bolt
Author
Owner

@bugrabbit commented on GitHub (Feb 25, 2019):

Thanks, my bad.
Updating to the latest go version (1.11) also solves the problem as the GOPATH will be set automatically in the latest versions.

<!-- gh-comment-id:466927502 --> @bugrabbit commented on GitHub (Feb 25, 2019): Thanks, my bad. Updating to the latest go version (1.11) also solves the problem as the GOPATH will be set automatically in the latest versions.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Cloak#9
No description provided.