The first time the lua interface was included in Vim 7.3a, I could
successfully compile with +lua. Now (with no changes since then) I
cannot; and yet the lua and lua-devel packages are installed on my
openSUSE 11.2 system, as "lua-5.1.4-6.2-i586" and
"lua-devel-5.1.4-6.2-i586" respectively.
I just ran "make reconfig" then "./vim --version |more" and the version
listing includes -lua.
Here's how I set the configure arguments:
#!/bin/bash
export CONF_OPT_GUI='--enable-gnome-check'
export CONF_OPT_LUA='--enable-luainterp'
export CONF_OPT_PERL='--enable-perlinterp'
export CONF_OPT_PYTHON='--enable-pythoninterp'
#export CONF_OPT_TCL='--enable-tclinterp --with-tclsh=tclsh8.5'
export CONF_OPT_TCL='--enable-tclinterp'
export CONF_OPT_RUBY='--enable-rubyinterp'
export CONF_OPT_MZSCHEME='--disable-mzschemeinterp'
#export CONF_OPT_PLTHOME='--with-plthome=/usr/local/plt'
export CONF_OPT_CSCOPE='--enable-cscope'
export CONF_OPT_MULTIBYTE='--enable-multibyte'
export CONF_OPT_FEAT='--with-features=huge'
export CONF_OPT_COMPBY='"[email protected]"'
# need to patch feature.h
# to disable +tag_old_static: comment out:
# # define FEAT_TAG_OLDSTATIC
# at line 360 (or about)
# to enable +xterm_save: uncomment:
# /* #define FEAT_XTERM_SAVE */
# at line 831 (or about)
export CONF_ARGS=''
The above is sourced (not run) immediately before running make.
Here's an extract of the make log for my latest "make reconfig":
[...]
make[1]: Entering directory `/root/.build/vim/vim-hg/vim/src/shadow-huge'
GUI_INC_LOC="" GUI_LIB_LOC="" \
CC="" CPPFLAGS="" CFLAGS="" \
LDFLAGS="" srcdir="." \
./configure --enable-gnome-check \
--enable-perlinterp --enable-pythoninterp \
--enable-tclinterp --enable-rubyinterp \
--enable-cscope --enable-multibyte \
\
--with-features=huge \
"[email protected]" \
--disable-mzschemeinterp \
--enable-luainterp \
configure: creating cache auto/config.cache
[...]
checking --enable-luainterp argument... yes
checking --with-lua-prefix argument... "no"
checking LUA_PREFIX environment var... "not set"
[...]
auto/config.cache has nothing about lua; it has something about the 4
other scripts I include, as follows:
[...]
ac_cv_path_PKG_CONFIG=${ac_cv_path_PKG_CONFIG=/usr/bin/pkg-config}
ac_cv_path_vi_cv_path_perl=${ac_cv_path_vi_cv_path_perl=/usr/bin/perl}
ac_cv_path_vi_cv_path_python=${ac_cv_path_vi_cv_path_python=/usr/bin/python}
ac_cv_path_vi_cv_path_ruby=${ac_cv_path_vi_cv_path_ruby=/usr/bin/ruby}
ac_cv_path_vi_cv_path_tcl=${ac_cv_path_vi_cv_path_tcl=/usr/bin/tclsh8.5}
ac_cv_path_xmkmfpath=${ac_cv_path_xmkmfpath=/usr/bin/xmkmf}
[...]
auto/config.h disables lua, as follows:
[...]
/* Define if you want to include the Lua interpreter. */
/* #undef FEAT_LUA */
/* Define if you want to include the MzScheme interpreter. */
/* #undef FEAT_MZSCHEME */
/* Define if you want to include the Perl interpreter. */
#define FEAT_PERL 1
/* Define if you want to include the Python interpreter. */
#define FEAT_PYTHON 1
/* Define if you want to include the Python3 interpreter. */
/* #undef FEAT_PYTHON3 */
/* Define for linking via dlopen() or LoadLibrary() */
/* #undef DYNAMIC_PYTHON */
/* Define for linking via dlopen() or LoadLibrary() */
/* #undef DYNAMIC_PYTHON3 */
/* Define if you want to include the Ruby interpreter. */
#define FEAT_RUBY 1
/* Define if you want to include the Tcl interpreter. */
#define FEAT_TCL 1
/* Define if you want to include the Sniff interface. */
/* #undef FEAT_SNIFF */
[...]
If I can run other checks to help you diagnose the problem, just say what.
Best regards,
Tony.
--
Individualists unite!
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php