[GH-ISSUE #2341] Failed to compile frp on openwrt. #1858

Closed
opened 2026-05-05 13:12:06 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @hongyi-zhao on GitHub (Apr 4, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2341

I'm currently running openwrt in pve 6.3-2, as shown below:

root@OpenWrt:~# cat /etc/openwrt_release 
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='19.07.7'
DISTRIB_REVISION='r11306-c4a6851c72'
DISTRIB_TARGET='x86/64'
DISTRIB_ARCH='x86_64'
DISTRIB_DESCRIPTION='OpenWrt 19.07.7 r11306-c4a6851c72'
DISTRIB_TAINTS=''

I try to compile the git master version of frp on openwrt, but failed:

# make
go fmt ./...
env CGO_ENABLED=0 go build -trimpath -ldflags "-s -w" -o bin/frps ./cmd/frps
go tool: no such tool "compile"
make: *** [Makefile:23: frps] Error 2

Any hints will be highly appreciated.

Regards,
HY

Originally created by @hongyi-zhao on GitHub (Apr 4, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2341 I'm currently running openwrt in pve 6.3-2, as shown below: ``` root@OpenWrt:~# cat /etc/openwrt_release DISTRIB_ID='OpenWrt' DISTRIB_RELEASE='19.07.7' DISTRIB_REVISION='r11306-c4a6851c72' DISTRIB_TARGET='x86/64' DISTRIB_ARCH='x86_64' DISTRIB_DESCRIPTION='OpenWrt 19.07.7 r11306-c4a6851c72' DISTRIB_TAINTS='' ``` I try to compile the git master version of frp on openwrt, but failed: ``` # make go fmt ./... env CGO_ENABLED=0 go build -trimpath -ldflags "-s -w" -o bin/frps ./cmd/frps go tool: no such tool "compile" make: *** [Makefile:23: frps] Error 2 ``` Any hints will be highly appreciated. Regards, HY
gitea-mirror 2026-05-05 13:12:06 -06:00
Author
Owner

@fatedier commented on GitHub (Apr 14, 2021):

You can just cross compile it on linux or download it directly from relase page.

<!-- gh-comment-id:819519303 --> @fatedier commented on GitHub (Apr 14, 2021): You can just cross compile it on linux or download it directly from relase page.
Author
Owner

@github-actions[bot] commented on GitHub (May 30, 2021):

Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.

<!-- gh-comment-id:850919675 --> @github-actions[bot] commented on GitHub (May 30, 2021): Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.
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#1858
No description provided.