user.Current()
不适用于新的Fedora golang。不涉及交叉编译。直接go install
就跑。在 Ubuntu 和自定义松弛软件上运行良好。 有什么想法吗?
这是 fedora 中的一个错误:错误1135152
如果使用 gccgo
而不是golang
编译 Go 程序,它将起作用。
它看起来像用户。Current(( 最终从 libc 调用 getuid,他安装了它吗?是 64 位转速吗?