fedora 安装 gvim

5:28:00 PM 0 Comments

env:
  1. 2.6.25-14.fc9.i686
  2. gcc version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC)

process:

  1. insstall ncurses
    yum install ncurses
  2. install gtk2 development tools
    yum install gtk2-devel
  3. optimization
    CFLAGS="-march= -O3 -fomit-frame-pointer -freg-struct-return -pipe -Wall"
  4. configure
    ./configure --with-features=huge --enable-cscope --enable-multibyte --enable-xim --enable-fontset --enable-gui=gtk2
  5. make #compile and link
  6. make install #installation in /usr/local

可能出现的问题:
  1. 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就完全“干净”了呢,没想到还是有要人工清除的地方。

Some say he’s half man half fish, others say he’s more of a seventy/thirty split. Either way he’s a fishy bastard.