构建 coreutils 时出现 MinGW 错误(Windows 和 Linux 上的一致错误)——原因?
未能成功找到各种 Unix 工具(如 xargs 等)的最新独立二进制文件(这个版本虽然很棒,但需要外部 DLL),我已经接受了自己编译它们的挑战。
……很痛苦。
但最终,我通过 sed
和 grep
取得了成功。
但是,当我尝试使用 MinGW GCC 构建 coreutils
时,我总是在 ./configure
末尾收到此错误:
checking whether it is possible to resort to fread on /etc/mnttab... no
configure: error: could not determine how to read list of mounted file systems
有趣的是,这种情况都发生 在我的 Windows 计算机的 MSYS 环境上,和在 Ubuntu 的 MinGW 上。
当然,我可以手动删除 configure
中的检查并尝试继续,但我确信有些东西会破坏线路,就像往常一样。
有谁知道造成这种情况的原因以及如何解决?
Having been unsuccessful in finding recent, standalone binaries of various Unix tools like xargs
and whatnot (this version, while great, requires external DLLs), I've taken up the challenge of compiling them myself.
...It's painful.
Ultimately, though, I succeeded with sed
and grep
.
However, when I try to build coreutils
with MinGW GCC, I always get this error at the end of ./configure
:
checking whether it is possible to resort to fread on /etc/mnttab... no
configure: error: could not determine how to read list of mounted file systems
Interestingly, this happens both on my Windows machine's MSYS environment, and on Ubuntu's MinGW.
Granted, I could just remove the check from configure
by hand and try to continue, but I'm sure something is going to break down the line, like it always has.
Does anyone know what causes this, and how to fix it?
是因为 MinGW 没有提供完整的 POSIX 或 SunOS 或 LFH 或 FHS 模拟吗?
甚至 MSYS 的 coreutils 构建也不完整:
coreutils 官方支持的唯一基于 Windows 的 POSIX 仿真是 Cygwin:
关于
configure
的错误:MSYS中没有真正的挂载(只有一个非常具体的挂载),因此默认位置(
/etc/mnttab
)中没有挂载的文件系统列表)。Is it because MinGW provides no full POSIX or SunOS or LFH or FHS emulation.
Even MSYS's build of coreutils is incomplete:
The only Windows-based POSIX emulation officially supported by coreutils is Cygwin:
About error from
configure
:There is no real mount in MSYS (only a very specific one), so there is no list of mounted fs in default location (
/etc/mnttab
).