详解安装emac-25.3过程及问题解决

14 篇文章 0 订阅
5 篇文章 1 订阅

本人安装环境为centos7,其他linux版本也大同小异,可参考操作。
1. 下载emacs-25.3.tar.gz到centos,用tar –vxzf 命令解压;
2. 进入解压后的目录,命令:cd emacs-25.3/
3. 使用./configure命令进行配置(可以设定路径);
由于我安装的是带图形界面的,在进行这一步时,报如下错误:

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. Also make
sure you have development files for image handling, i.e.
tiff, gif, jpeg, png and xpm.
If you are sure you want Emacs compiled without X window support, pass
–without-x
to configure.

意思就是缺少图形界面的支持库,如果不想在图形界面下使用Emacs,可以使用./configure –without-x命令执行(看自己需求,我就只想在命令行使用,还专门修改了启动配置为在非图形界面启动),当然很多人还是想使用图形界面的,那么就需要安装相应的支持库了,报错的提示是安装Gtk+ 或者 Motif,我们安装其中一个即可。
执行命令:yum install gtk3*
然后再接着执行:./configure
发现又报如下错误:

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
然后再接着执行:./configure
发现又报如下错误:
configure: error: The required function ‘tputs’ was not found in any library.
The following libraries were tried (in order):
libtinfo, libncurses, libterminfo, libtermcap, libcurses
Please try installing whichever of these libraries is most appropriate
for your system, together with its header files.
For example, a libncurses-dev(el) or similar package.
继续安装支持库,执行以下命令:yum install ncurses-devel
然后再接着执行:./configure
此刻,没有报错信息的出现,用ls命令查看后我们看到了期待已久的Makefile文件,接着执行make和make install命令,静静的等着安装完成。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值