构建 Vim 时,如何找出哪些缺失的依赖项导致哪些功能被禁用?
运行
$ ./configure --with-features=huge
构建后,然后看到一些功能被禁用,例如
$ vim --version
...
-clientserver
...
我可以查看 ./src/config.log
并查看哪些依赖项 configure
未能找到,但它没有告诉我其中哪一个导致给定功能 (clientserver
) 被禁用。
我怎样才能知道是哪些?
(理想情况下,如果缺少依赖项,我希望构建失败,但似乎正在开发)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该补丁已包含在内。该标志为
--enable-fail-if-missing
。来自
./configure --help
这只会检查是否可以配置 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
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.