Ubuntu 18.04安装Emacs 26.2问题解决

个人博客地址:Ubuntu 18.04安装Emacs 26.2问题解决 | 一张假钞的真实世界

no X development libraries were found

checking for X... no
checking for X... true
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.

安装libgtk开发包:

$ sudo apt-get install libgtk2.0-dev

libXpm libjpeg libgif/libungif libtiff gnutls were not found

configure: error: The following required libraries were not found:
    libXpm libjpeg libgif/libungif libtiff gnutls
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 --with-gnutls=no
as options to configure
````

安装对应的包:

````Bash
sudo apt-get install libxpm-dev
sudo apt-get install libjpeg62-dev
sudo apt-get install libgif-dev
sudo apt-get install libtiff5-dev
sudo apt-get install libgnutls28-dev
相关推荐
Gu_n_ian_3 小时前
在Visual Studio Code自带的按键编译无法使用该怎么办
ide·windows·vscode·编辑器
千航@abc3 小时前
vim如何解决‘’文件非法关闭后,遗留交换文件‘’的问题
linux·编辑器·vim
ARbing_an1 天前
[VSCode] vscode下载安装及安装中文插件详解(附下载链接)
ide·vscode·编辑器
千航@abc1 天前
vim交换文件的工作原理
linux·编辑器·vim
我命由我123451 天前
VSCode 设置为中文(Configure Display Language)
前端·javascript·ide·笔记·vscode·学习·编辑器
qq_433502182 天前
使用vscode + Roo Code (prev. Roo Cline)+DeepSeek-R1使用一句话需求做了个实验
ide·人工智能·vscode·python·编辑器
Azanulbizar3 天前
基于vscode的cpp&cmake调试环境配置
ide·vscode·编辑器
千航@abc3 天前
vim可视化模式的进阶操作
linux·编辑器·vim
千航@abc3 天前
vim的多文件操作
linux·编辑器·vim