编译提示目录不存在,清大佬们看看
nomoneynolife opened this issue · comments
Bug Description
os-archs=linux:amd64 windows:amd64 只生成这2个版本;
报错日志:
make -f Makefile.cross-compiles
Build linux-amd64...
client/admin_api.go:18:2: package cmp is not in GOROOT (/usr/local/go/src/cmp)
pkg/util/util/util.go:23:2: package math/rand/v2 is not in GOROOT (/usr/local/go/src/math/rand/v2)
/home/work/go/pkg/mod/github.com/fatedier/golib@v0.5.0/log/output_rotatefile.go:9:2: package slices is not in GOROOT (/usr/local/go/src/slices)
pkg/util/xlog/xlog.go:18:2: package cmp is not in GOROOT (/usr/local/go/src/cmp)
pkg/util/util/util.go:23:2: package math/rand/v2 is not in GOROOT (/usr/local/go/src/math/rand/v2)
pkg/config/legacy/client.go:21:2: package slices is not in GOROOT (/usr/local/go/src/slices)
Build linux-amd64 done
Build windows-amd64...
client/admin_api.go:18:2: package cmp is not in GOROOT (/usr/local/go/src/cmp)
pkg/util/util/util.go:23:2: package math/rand/v2 is not in GOROOT (/usr/local/go/src/math/rand/v2)
/home/work/go/pkg/mod/github.com/fatedier/golib@v0.5.0/log/output_rotatefile.go:9:2: package slices is not in GOROOT (/usr/local/go/src/slices)
pkg/util/xlog/xlog.go:18:2: package cmp is not in GOROOT (/usr/local/go/src/cmp)
pkg/util/util/util.go:23:2: package math/rand/v2 is not in GOROOT (/usr/local/go/src/math/rand/v2)
pkg/config/legacy/client.go:21:2: package slices is not in GOROOT (/usr/local/go/src/slices)
Build windows-amd64 done
mv: cannot stat ‘./release/frpc_windows_amd64’: No such file or directory
make: *** [app] Error 1
这是为啥呀。。。
frpc Version
0.58.0
frps Version
0.58.0
System Architecture
centos 7
Configurations
默认配置
Logs
No response
Steps to reproduce
...
Affected area
- Docs
- Installation
- Performance and Scalability
- Security
- User Experience
- Test and Release
- Developer Infrastructure
- Client Plugin
- Server Plugin
- Extensions
- Others
不管了,一顿瞎操作,安装包,升级GO,不知道哪个的问题,反正可以了。。。。