mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #245] 编译mips32服务端试出错 #171
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#171
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gavin219 on GitHub (Feb 4, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/245
src/utils/vhost/router.go:113: undefined: strings.Compare
请问如何解决
frpc客户端正常编译了
我在恩山发了帖子,也没有答复的。还请作者帮忙
http://www.right.com.cn/forum/thread-207072-1-1.html
@fatedier commented on GitHub (Feb 5, 2017):
Go 编译环境不正确,也可能是版本问题。
@gavin219 commented on GitHub (Feb 5, 2017):
[root@6231924fb2f1 ~]# go version
go version go1.7.5 linux/amd64
[root@6231924fb2f1 frp]# export GOARCH=mips32
[root@6231924fb2f1 frp]# export GOOS=linux
[root@6231924fb2f1 frp]# go get -v github.com/docopt/docopt-go
github.com/docopt/docopt-go (download)
cmd/go: unsupported GOOS/GOARCH pair linux/mips32
如果是用1.4版本就不出这个错误,但是无法编译frps,只能编译frpc
@lotc commented on GitHub (Feb 7, 2017):
请参考 #198
@gavin219 commented on GitHub (Feb 8, 2017):
@lotc 使用gomini编译frps是出错的。但是frpc就没问题。貌似是go版本问题。 go1.8,go1.75编译出来运行就会“Illegal instruction”
@fatedier commented on GitHub (Feb 8, 2017):
@gavin219 go1.8 才开始支持 mips32,目前 1.8 还不是正式发布的版本。
mips 32位的 GOARCH 就是 mips,64位是 mips64。
@gavin219 commented on GitHub (Feb 8, 2017):
@fatedier 等1.8正式版本……?1.4.2版本的编译的客户端就可以正常运行。看来是go版本问题?
@fatedier commented on GitHub (Feb 8, 2017):
@gavin219 这个可以给 golang 提 issue....
@fatedier commented on GitHub (Feb 10, 2017):
https://github.com/golang/go/issues/18880
@fatedier commented on GitHub (Feb 10, 2017):
不清楚如何在其他平台交叉编译的时候怎么配置这个 FPU。
@gavin219 commented on GitHub (Feb 13, 2017):
原来如此……
@fatedier commented on GitHub (Feb 17, 2017):
https://groups.google.com/d/msg/golang-nuts/DT_P9UPKHgI/SWG61VaODwAJ
看了下,go 官方团队后续还是会解决这个问题的。
@gavin219 commented on GitHub (Feb 22, 2017):
只有期待了……
@yijing1998 commented on GitHub (Jul 31, 2017):
可重新编译 mt7620 ramips 架构的lede固件,make kernel_menuconfig,在kernel type中选择mips fpu emulator。该固件可直接运行frp release v0.13.0。
@IxsCN commented on GitHub (Nov 19, 2017):
我编译了未开启 FPU emulator 也能使用的版本,现在只有 mipsle (MTK 762x)。
需要的可以试试
https://github.com/IxsCN/frpc_mipsle_noFPU
@nwct commented on GitHub (Dec 7, 2017):
我已经编译了0.13.0版本的mips32le的客户端和服务端,有需要的可以下载使用。
下载地址是:https://github.com/nwct/frpu/releases
编译过程中遇到过坑,基本上就是新版本go的依赖和老版本的依赖不兼容的问题
另外,go1.8版本编译出来的mipsle并不是mips32le这个架构的cpu能使用的
所以,现在mt7620a这种路由器应该使用mips32le版本的程序