构建 coreutils 时出现 MinGW 错误(Windows 和 Linux 上的一致错误)——原因?

发布于 11-29 03:59 字数 709 浏览 2 评论 0原文

未能成功找到各种 Unix 工具(如 xargs 等)的最新独立二进制文件(这个版本虽然很棒,但需要外部 DLL),我已经接受了自己编译它们的挑战。

……很痛苦。

但最终,我通过 sedgrep 取得了成功。
但是,当我尝试使用 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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

被翻牌2024-12-06 03:59:57

是因为 MinGW 没有提供完整的 POSIX 或 SunOS 或 LFH 或 FHS 模拟吗?

甚至 MSYS 的 coreutils 构建也不完整:

默认情况下,并非 Coreutils 中的所有工具都随 MSYS 一起提供。

coreutils 官方支持的唯一基于 Windows 的 POSIX 仿真是 Cygwin:

Cygwin 团队为将 GNU Project 软件移植到 MS-Windows 所做的辛勤工作受到极大的钦佩。然而,GNU 团队通常使用 GNU 操作系统,无法访问 Cygwin 系统或 MS-Windows 系统,这意味着我们大多数人无法帮助您。如果您能直接向 Cygwin 人员报告错误,我们将不胜感激。他们是专家,最适合解决您的问题。

关于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

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:

Not all tools from Coreutils are shipped with MSYS by default.

The only Windows-based POSIX emulation officially supported by coreutils is Cygwin:

The hard work the Cygwin team has done to port GNU Project software to MS-Windows is greatly admired. However the GNU team generally uses GNU Operating Systems and do not have access to Cygwin systems or MS-Windows systems which means that most of us can't help you. It would be most appreciated if you would make your bug report directly to the Cygwin folks. They are the experts and best suited to handle your problem.

About error from 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

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).

來不及說愛妳2024-12-06 03:59:57

构建它
MSYS

PATH=/bin:/mingw/bin
mingw-get install msys-dvlpr
./configure

Build it with
MSYS

PATH=/bin:/mingw/bin
mingw-get install msys-dvlpr
./configure
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文