fedora 安装 gvim
env:
- 2.6.25-14.fc9.i686
- gcc version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC)
process:
- insstall ncurses
yum install ncurses
- install gtk2 development tools
yum install gtk2-devel
- optimization
CFLAGS="-march=
-O3 -fomit-frame-pointer -freg-struct-return -pipe -Wall" - configure
./configure --with-features=huge --enable-cscope --enable-multibyte --enable-xim --enable-fontset --enable-gui=gtk2
- make #compile and link
- make install #installation in /usr/local
可能出现的问题:
- checking for X... (cached) no
checking if X11 header files can be found... yes
checking --enable-gui argument... no GUI support
checking for X11/SM/SMlib.h... (cached) no
问题出在那个(cached)。因为在以前系统中编译过一次,把X的路径记录到./src/auto/config.cache中了。删掉这个文件就好了。本来以为有了make clean就完全“干净”了呢,没想到还是有要人工清除的地方。