1.下载
tar -xjf vim-7.1.tar.bz2
tar -xzf vimgdb71-1.13.tar.gz
2.解压后执行
patch -d vim71 --backup -p0 < vimgdb/vim71.diff
3.修改Makefile文件:
cd vim71/src
vim Makefile
CONF_OPT_GUI = --enable-gui=gtk2 #gtk2支持,也能使用gnome
CONF_OPT_CSCOPE = --enable-cscope #cscope支持
CONF_OPT_MULTIBYTE = --enable-multibyte #双字符支持
CONF_OPT_INPUT = --enable-xim #输入法支持
CONF_OPT_OUTPUT = --enable-fontset #双字符支持
CONF_OPT_FEAT = --with-features=huge #最大特性支持
4.编译
注意vimgdb/INSTALL.txt中的提示
IMPORTANT NOTE: you must run make (not ./configure), and if you run
./configure then you must add the --enable-gdb command line argument
in order to include the gdb feature (vimgdb) in vim.
如果有出现 vim E319 language message zh_CN.UTF-8错误,则不运行./configure直接进入src执行make。
出现问题:
no terminal library found
checking for tgetent()... configure: error: NOT FOUND!
You need to install a terminal library; for example ncurses.
Or specify the name of the library with --with-tlib.
解决:
yum install ncurses-devel
阅读(1717) | 评论(0) | 转发(0) |