Ubuntu安装emacs25.3

作者: admin 日期: 2018-03-26 17:29:23 人气: - 评论: 0

在Ubuntu环境下使用apt安装的emacs 是老版本的,最新版本的emacs25是需要自己编译安装的

直接下载最新版本的emacs执行

./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


说现在的环境只支持编译控制台版本的emacs

执行apt install libgtk-3-dev


再次执行./configure 之后提示新错误

configure: error: The following required libraries were not found:

    libXpm libgif/libungif libtiff

Maybe some development libraries/packages are missing?

If you don't want to link with them give

    --with-xpm=no --with-gif=no --with-tiff=no

as options to configure


缺少 libXpm 等库,使用apt命令一一安装上

再次执行./configure

一路执行make && make install 

安装成功!


相关内容

发表评论
更多 网友评论0 条评论)
暂无评论

Copyright © 2012-2014 我的代码板 Inc. 保留所有权利。

页面耗时0.0234秒, 内存占用1.82 MB, 访问数据库12次

闽ICP备15009223号-1