构建 Vim 时,如何找出哪些缺失的依赖项导致哪些功能被禁用?

发布于 2024-12-04 19:07:30 字数 447 浏览 5 评论 0 原文

运行

$ ./configure --with-features=huge

构建后,然后看到一些功能被禁用,例如

$ vim --version
...
-clientserver
...

我可以查看 ./src/config.log 并查看哪些依赖项 configure 未能找到,但它没有告诉我其中哪一个导致给定功能 (clientserver) 被禁用。

我怎样才能知道是哪些?

(理想情况下,如果缺少依赖项,我希望构建失败,但似乎正在开发

After running

$ ./configure --with-features=huge

Building, and then seeing some features disabled, e.g.

$ vim --version
...
-clientserver
...

I can look in ./src/config.log and see which dependencies configure failed to find, but it does not tell me which of these caused the given feature (clientserver) to be disabled.

How can I find out which those are?

(Ideally I would like the build to fail if dependencies are missing but it seems that is in development)

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

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

发布评论

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

评论(1

孤独患者 2024-12-11 19:07:30

该补丁已包含在内。该标志为--enable-fail-if-missing

来自 ./configure --help

  --enable-fail-if-missing    Fail if dependencies on additional features
     specified on the command line are missing.

这只会检查是否可以配置 lua、perl、python、python3、Tcl 和 Ruby。


-clientserver 的情况下,您需要确保正在构建 vim,以便它可以与 X 通信(--with-x)。客户端服务器功能使用 X Window Manager 在会话之间进行通信。我没看过,但我想如果 vim 无法检测到 X,它就不会启用它


。一般来说,我认为目前没有办法让配置失败。

That patch is included. The flag is --enable-fail-if-missing.

From ./configure --help

  --enable-fail-if-missing    Fail if dependencies on additional features
     specified on the command line are missing.

This will only check to see if lua, perl, python, python3, Tcl, and Ruby can be configured.


In this case of -clientserver you need make sure you are building vim so that it can talk to X (--with-x). The client server feature uses the X Window Manager to communicate between sessions. I haven't looked but I imagine that vim won't enable it if it can't detect X.


Generally I don't think there is a way to get configure to fail currently.

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