[GH-ISSUE #421] 树莓派3无法使用frpc并且编译错误 #315

Closed
opened 2026-05-05 12:07:02 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @tra4less on GitHub (Aug 10, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/421

版本 0.13
下载的包 frp_0.13.0_linux_arm.tar.gz
系统 archlinux
架构 aarch64

[alarm@alarm frp]$ uname -a
Linux alarm 4.12.5-1-ARCH #1 SMP Sun Aug 6 16:44:48 MDT 2017 aarch64 GNU/Linux

执行错误

[alarm@alarm frpc]$ ./frpc -v
-bash: ./frpc: cannot execute binary file: Exec format error

然后试着自己编译,删除了makefile 的frps,go get 了 相关的包,然后编译错误

[alarm@alarm frp]$ make
go fmt ./assets/...
go fmt ./client/...
go fmt ./cmd/...
go fmt ./models/...
go fmt ./server/...
go fmt ./utils/...
go build -o bin/frpc ./cmd/frpc
# _/home/alarm/frpc/frp/cmd/frpc
cmd/frpc/main.go:77: cannot use conf (type "github.com/vaughan0/go-ini".File) as type "github.com/fatedier/frp/vendor/github.com/vaughan0/go-ini".File in argument to config.LoadClientCommonConf
cmd/frpc/main.go:159: cannot use conf (type "github.com/vaughan0/go-ini".File) as type "github.com/fatedier/frp/vendor/github.com/vaughan0/go-ini".File in argument to config.LoadProxyConfFromFile
make: *** [Makefile:25: frpc] Error 2

希望得到您的帮助,谢谢

Originally created by @tra4less on GitHub (Aug 10, 2017). Original GitHub issue: https://github.com/fatedier/frp/issues/421 版本 `0.13` 下载的包 [frp_0.13.0_linux_arm.tar.gz](https://github.com/fatedier/frp/releases/download/v0.13.0/frp_0.13.0_linux_arm.tar.gz) 系统 `archlinux` 架构 `aarch64` ``` [alarm@alarm frp]$ uname -a Linux alarm 4.12.5-1-ARCH #1 SMP Sun Aug 6 16:44:48 MDT 2017 aarch64 GNU/Linux ``` 执行错误 ``` [alarm@alarm frpc]$ ./frpc -v -bash: ./frpc: cannot execute binary file: Exec format error ``` 然后试着自己编译,删除了makefile 的frps,go get 了 相关的包,然后编译错误 ``` [alarm@alarm frp]$ make go fmt ./assets/... go fmt ./client/... go fmt ./cmd/... go fmt ./models/... go fmt ./server/... go fmt ./utils/... go build -o bin/frpc ./cmd/frpc # _/home/alarm/frpc/frp/cmd/frpc cmd/frpc/main.go:77: cannot use conf (type "github.com/vaughan0/go-ini".File) as type "github.com/fatedier/frp/vendor/github.com/vaughan0/go-ini".File in argument to config.LoadClientCommonConf cmd/frpc/main.go:159: cannot use conf (type "github.com/vaughan0/go-ini".File) as type "github.com/fatedier/frp/vendor/github.com/vaughan0/go-ini".File in argument to config.LoadProxyConfFromFile make: *** [Makefile:25: frpc] Error 2 ``` 希望得到您的帮助,谢谢
Author
Owner

@lichaoi commented on GitHub (Aug 11, 2017):

你好!我的也是树苺派3b 系统 archlinuxarm64 遇到和你完全一样的问题。
我是这样解决的: go get 项目到本机后,在 go path 目录下找到的frp项目源码是可以正常编译的。
已经编译通过并正常运行!
希望对你有所帮助。

<!-- gh-comment-id:321731782 --> @lichaoi commented on GitHub (Aug 11, 2017): 你好!我的也是树苺派3b 系统 archlinuxarm64 遇到和你完全一样的问题。 我是这样解决的: go get 项目到本机后,在 go path 目录下找到的frp项目源码是可以正常编译的。 已经编译通过并正常运行! 希望对你有所帮助。
Author
Owner

@WindGreen commented on GitHub (Jun 5, 2018):

3b和3b+虽然是arm64 v8的芯片,但是raspbian是32的,所以只能安装arm v7的包

<!-- gh-comment-id:394548255 --> @WindGreen commented on GitHub (Jun 5, 2018): 3b和3b+虽然是arm64 v8的芯片,但是raspbian是32的,所以只能安装arm v7的包
Author
Owner

@CaiJinHao commented on GitHub (Oct 17, 2019):

@WindGreen arm v7的包在哪下载,方便贴个地址吗

<!-- gh-comment-id:542966838 --> @CaiJinHao commented on GitHub (Oct 17, 2019): @WindGreen arm v7的包在哪下载,方便贴个地址吗
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#315
No description provided.