Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1337630
  • 博文数量: 482
  • 博客积分: 13297
  • 博客等级: 上将
  • 技术积分: 2890
  • 用 户 组: 普通用户
  • 注册时间: 2009-10-12 16:25
文章分类

全部博文(482)

文章存档

2012年(9)

2011年(407)

2010年(66)

分类: LINUX

2011-08-26 10:28:35

从官网,下了vim73,vim-7.3.tar.bz2。然后编译GUI,./
configure --enable-gtk2-check --e  nable-gui=gtk2 --with-features=huge,
结果提示no GUI support。
checking for xmkmf... (cached) /usr/X11R6/bin/xmkmf
checking for X... (cached) no
checking if X11 header files can be found... yes
checking --enable-gui argument... no GUI support

X11的库都装了,从log看header files能找到了。
gtk, gtk-devel, gtk2, gtk2-devel都装了。按照网站说明的,在path里也能找到gtk-config。

xrr-srv1:/ # rpm -q gtk
gtk-1.2.10-907.11
xrr-srv1:/ # rpm -q gtk-devel
gtk-devel-1.2.10-907.11
xrr-srv1:/ # rpm -q gtk2
gtk2-2.8.11-0.27.11
xrr-srv1:/ # rpm -q gtk2-devel
gtk2-devel-2.8.11-0.27.11
xrr-srv1:/ # which gtk-config
/opt/gnome/bin/gtk-config

搞不懂,还有啥问题了。。。。

----------------------------------------------------------------------------------------------

看 config.log

----------------------------------------------------------------------------------------------

checking for X... (cached) no
checking if X11 header files can be found... yes
cached!?!?!

----------------------------------------------------------------------------------------------

make clean 以及 make distclean一下,否则会读取之前make的cache。
另外X11的话,xorg-dev也应该要的吧。

----------------------------------------------------------------------------------------------

AleiPhoenix (A.K.A Areverie) 同学答对了!
感谢
应该是make distclean的原因

我原来有做make clean的删得不够彻底。make distclean的话,ms还会删configure.mk等一下历史的dd。

谢谢。
----------------------------------------------------------------------------------------------
其实,关键是src里面的INSTALL 里面说的,只提到了make clean
One thing to watch out for: If the configure script itself changes,
running
"make" will execute it again, but without your arguments.  Do "make
clean" and
run configure again.
----------------------------------------------------------------------------------------------
xorg-x11-devel我是有的。

然后在INSTALL 里后面的Basic Installation中有说明make distclean。还是看得不够仔细啊。

  5. You can remove the program binaries and object files from the
     source code directory by typing `make clean'.  To also remove the
     files that `configure' created (so you can compile the package
for
     a different kind of computer), type `make distclean'.  There is
     also a `make maintainer-clean' target, but that is intended
mainly
     for the package's developers.  If you use it, you may have to get
     all sorts of other programs in order to regenerate files that
came with the distribution.

====

阅读(1660) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~