[Emacs] 编译emacs 25,提示"configure: error: You seem to be running X, but no X development libraries were found. You should install the relevant development files for X"

一次性安装所有可能缺少的(综合以下问题1,2,3的安装文件):

yum install epel-release

yum install gtk2 gtk2-devel gtk2-devel-docs libXpm libXpm-devel  libjpeg libjpeg-devel libgif libgif-devel libungif libungif-devel libtiff libtiff-devel ncurses-devel -y

 

问题一:Configure: error: You seem to be running X, but no X development libraries were found. you should install the relevant development files for X and for the toolkit you want, such as Gtk+ or Motif.

【提示缺少x windows系统的开发库。如果不想在图形界面下使用Emacs,可以使用--without-x选项进行编译,否则要安装GTK+,才能通过configure.】
解决上述问题,还是用这个命令:yum install gtk2 gtk2-devel gtk2-devel-docs -y

 

问题二:configure: error: The following required libraries were not found:
libXpm libjpeg libgif/libungif libtiff
Maybe some development libraries/packages are missing?
If you don't want to link with them give
--with-xpm=no --with-jpeg=no --with-gif=no --with-tiff=no
as options to configure
解决如下
yum install libXpm libXpm-devel  libjpeg libjpeg-devel libgif libgif-devel libungif libungif-devel libtiff libtiff-devel -y

 

问题三

configure: error: The required function 'tputs' was not found in any library.
The following libraries were tried (in order):
libtinfo, libncurses, libterminfo, libtermcap, libcurses

解决如下

yum install ncurses-devel -y

 

posted @ 2018-03-19 19:15  byjz  阅读(942)  评论(0编辑  收藏  举报