我通过源码编译安装 vim 的时候编译时添加了参数如下
./configure \
--prefix=/usr \
--with-features=huge \
--enable-multibyte \
--enable-cscope=yes \
--enable-perlinterp=yes \
--enable-rubyinterp=yes \
--enable-luainterp=yes \
--enable-python3interp=yes \
--enable-fontset=yes \
--enable-terminal=yes \
--enable-largefile \
--with-lua-prefix=/usr/local/bin \
--with-luajit \
--with-python3-command=python \
--with-python3-config-dir=/usr/local/bin/python3-config \
--with-ruby-command=ruby \
--with-compiledby=$USER \
--disable-gui \
--disable-netbeans \
按照文档中的提示,在使用 sudo make && make install 以后,打开 vim ,:version 可以看见 python3 和 lua 前面应该是 + 号,可为什么我的还是 -
请问这是哪里配置不对,还是需要改动系统的什么地方,我的是 mac
python3 和 lua 我都已经装过了:
要在编译时添加 lua 和 python3 支持,需要系统有 lua 和 python3 的 开发库。
如果你使用的是 macos 的话,建议你还是用 homebrew 安装吧