安装 Vim:“--with-local-dir”和 "includedir" 之间有什么区别

Installing Vim: What is the difference betwen "--with-local-dir" and "includedir"

我的主要目标是了解参数在 ./configure 中的工作原理。因此,我决定在 $HOME/local/ 中安装 ncursesvim,以免影响我的系统。

在配置 vim 时,我查看了 --with-local-dirincludedir。我想知道他们有什么区别

当我查看 vim-git-INSTALL-script 时,它说:

Unix: LOCAL HEADERS AND LIBRARIES NOT IN /usr/local

Sometimes it is necessary to search different path than /usr/local for locally
installed headers (/usr/local/include) and libraries (/usr/local/lib).
To search /stranger/include and /stranger/lib for locally installed
headers and libraries, use:
    ./configure --with-local-dir=/stranger

我认为那是 includedir 的目的。如果有人能告诉我哪里出错了,我将不胜感激。谢谢!

通常(和根据 documentation),includedir 用于当前程序 install 头文件。这与配置脚本可能必须告诉编译器找到编译程序所需的头文件的地方不同。