在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
安装成功!