在 src/Makefile 中,我取消了属性CONF_OPT_LUA
&CONF_OPT_LUA_PREFIX
CONF_OPT_LUA = --enable-luainterp
#CONF_OPT_LUA = --enable-luainterp=dynamic
# Lua installation dir (when not set uses $LUA_PREFIX or defaults to /usr)
CONF_OPT_LUA_PREFIX = --with-lua-prefix=/usr/local
前缀保留默认值
# Uncomment the next line to install Vim in your home directory.
#prefix = $(HOME)
我的机器上已经安装了 Lua:
root@flyingfisher-virtual-machine:/Work1/vim# lua
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
但是在制作和安装之后:
root@flyingfisher-virtual-machine:/Work1/vim# vi --version | grep lua
+listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape
[flyingfisher@bin] $which vim
/usr/local/bin/vim
我不知道为什么会这样?有人遇到过这个问题吗?