在src/Makefile中,我已經取消註釋屬性CONF_OPT_LUA
& CONF_OPT_LUA_PREFIX
VIM 73的構建尚未啓用LUA
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
前綴保持defalut
# Uncomment the next line to install Vim in your home directory.
#prefix = $(HOME)
的Lua已經安裝在我的機器上:
[email protected]:/Work1/vim# lua
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
但是在make和install之後:
[email protected]:/Work1/vim# vi --version | grep lua
+listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape
[[email protected]] $which vim
/usr/local/bin/vim
我不知道爲什麼會發生這種情況?有人遇到這個問題嗎?
是否運行的vim'給你'在/ usr/local/bin目錄/ vim'命令'? – jman
我再次確認vim路徑,它是/ usr/local/bin/vim – harris
你是否安裝了lua的dev包? – romainl