1. ncurses Installation
Official website Download: http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz
CSDN Download: http://download.csdn.net/detail/spch2008/8828779
TAR-XF NCURSES-5.9.TAR.GZCD Ncurses-5.9./configuremakesudo make install
2. LUA Installation
Official website Download: http://www.lua.org/download.html
CSDN Download: http://download.csdn.net/detail/spch2008/8828787
TAR-XF lua-5.3.1.tar.gzcd lua-5.3.1make linuxsudo make install
Question one:
Error:readline/readline.h:no such file or directory
Download ReadLine
CSDN Download: http://download.csdn.net/detail/spch2008/8828777
CD Readline-5.2./configuresudo Makesudo make install
Question two:
usr/local/lib/libreadline.so:undefined reference to ' tputs '//usr/local/lib/libreadline.so:undefined reference to ' Tgoto '//usr/local/lib/libreadline.so:undefined reference to ' Tgetflag '//usr/local/lib/libreadline.so:undefined Reference to "up"//usr/local/lib/libreadline.so:undefined reference to ' Tgetent '//usr/local/lib/libreadline.so: Undefined reference to ' tgetnum '//usr/local/lib/libreadline.so:undefined reference to ' PC '//usr/local/lib/ libreadline.so:undefined reference to ' tgetstr '//usr/local/lib/libreadline.so:undefined reference to ' BC ' collect2: Error:ld returned 1 exit status
Add-lncurses parameter
/home/spch2008/lua-5.3.1/src/makefile
linux:110 $ (make) $ (all) syscflags= "-dlua_use_linux" syslibs= "-wl,-e-ldl-lreadline-lncurses"
3. Vim Installation
Official Download: ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2
CSDN Download: http://download.csdn.net/detail/spch2008/8828773
TAR-XF vim-7.4.tar.bz2cd vim74./configure--prefix=/usr--with-features=huge--enable-rubyinterp-- Enable-pythoninterp--enable-luainterp--with-lua-prefix=/usr/localsudo makesudo make install
You can redirect the output to the log file to see the Configure output:
Cat Log | grep LUA
[Email protected]:~/vim74$ cat Log | grep luachecking--enable-luainterp argument ... yeschecking--with-lua-prefix argument .../usr/localchecking-- With-luajit ... nochecking for lua .../usr/local/bin/luachecking if lua.h can be found in/usr/local/include ... yeschecking If link With-l/usr/local/lib-llua is sane ... yes
Problem:
objects/if_lua.o:in function ' Luav_list_insert ':/home/spch2008/vim74/src/if_lua.c:777:undefined reference to ' luaL_ Optlong ' Collect2:error:ld returned 1 exit status
Modify File/home/spch2008/vim74/src/if_lua.c
Long pos = Lual_optlong (L, 3, 0);
Long pos = (long) Lual_optinteger (L, 3, 0);
4. Installation success, detection time, may encounter problems
Open Vim, enter: version, view vim compile time, if this is the compile build, then the correct, and then see if there is +lua.
If the compile time is incorrect, delete the old vim and copy the new VIM program.
sudo rm-f/usr/bin/vimsudo rm-f/usr/local/binsudo CP ~/vim74/src/vim/usr/binsudo CP ~/vim74/src/vim/usr/local/bin
VIM supports LUA