[GH-ISSUE #1614] 服务器上如何编译 #1278

Closed
opened 2026-05-05 12:48:56 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @lucasjinreal on GitHub (Jan 14, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1614

➜  frp git:(master) make
go fmt ./...
go build -o bin/frps ./cmd/frps
cmd/frps/main.go:21:2: cannot find package "github.com/fatedier/golib/crypto" in any of:
	/usr/lib/go-1.10/src/github.com/fatedier/golib/crypto (from $GOROOT)
	/root/go/src/github.com/fatedier/golib/crypto (from $GOPATH)
cmd/frps/root.go:21:2: cannot find package "github.com/spf13/cobra" in any of:
	/usr/lib/go-1.10/src/github.com/spf13/cobra (from $GOROOT)
	/root/go/src/github.com/spf13/cobra (from $GOPATH)
Makefile:21: recipe for target 'frps' failed
make: *** [frps] Error 1

Originally created by @lucasjinreal on GitHub (Jan 14, 2020). Original GitHub issue: https://github.com/fatedier/frp/issues/1614 ``` ➜ frp git:(master) make go fmt ./... go build -o bin/frps ./cmd/frps cmd/frps/main.go:21:2: cannot find package "github.com/fatedier/golib/crypto" in any of: /usr/lib/go-1.10/src/github.com/fatedier/golib/crypto (from $GOROOT) /root/go/src/github.com/fatedier/golib/crypto (from $GOPATH) cmd/frps/root.go:21:2: cannot find package "github.com/spf13/cobra" in any of: /usr/lib/go-1.10/src/github.com/spf13/cobra (from $GOROOT) /root/go/src/github.com/spf13/cobra (from $GOPATH) Makefile:21: recipe for target 'frps' failed make: *** [frps] Error 1 ```
Author
Owner

@QQ2017 commented on GitHub (Jan 15, 2020):

➜  frp git:(master) make
go fmt ./...
go build -o bin/frps ./cmd/frps
cmd/frps/main.go:21:2: cannot find package "github.com/fatedier/golib/crypto" in any of:
	/usr/lib/go-1.10/src/github.com/fatedier/golib/crypto (from $GOROOT)
	/root/go/src/github.com/fatedier/golib/crypto (from $GOPATH)
cmd/frps/root.go:21:2: cannot find package "github.com/spf13/cobra" in any of:
	/usr/lib/go-1.10/src/github.com/spf13/cobra (from $GOROOT)
	/root/go/src/github.com/spf13/cobra (from $GOPATH)
Makefile:21: recipe for target 'frps' failed
make: *** [frps] Error 1

https://github.com/fatedier/frp/issues/1600#issuecomment-571859560

<!-- gh-comment-id:574476127 --> @QQ2017 commented on GitHub (Jan 15, 2020): > ``` > ➜ frp git:(master) make > go fmt ./... > go build -o bin/frps ./cmd/frps > cmd/frps/main.go:21:2: cannot find package "github.com/fatedier/golib/crypto" in any of: > /usr/lib/go-1.10/src/github.com/fatedier/golib/crypto (from $GOROOT) > /root/go/src/github.com/fatedier/golib/crypto (from $GOPATH) > cmd/frps/root.go:21:2: cannot find package "github.com/spf13/cobra" in any of: > /usr/lib/go-1.10/src/github.com/spf13/cobra (from $GOROOT) > /root/go/src/github.com/spf13/cobra (from $GOPATH) > Makefile:21: recipe for target 'frps' failed > make: *** [frps] Error 1 > ``` https://github.com/fatedier/frp/issues/1600#issuecomment-571859560
Sign in to join this conversation.
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: github-starred/frp#1278
No description provided.