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
相关推荐
std787921 小时前
超越编辑器:IntelliJ IDEA,如何成为Java开发的智慧引擎
java·编辑器·intellij-idea
MediaTea21 小时前
Python 编辑器:PyCharm
开发语言·ide·python·pycharm·编辑器
MHJ_1 天前
VSCODE使用指南
ide·vscode·编辑器
MediaTea1 天前
Python 编辑器:Visual Studio Code
开发语言·ide·vscode·python·编辑器
猪猪侠|ZZXia1 天前
# vim中给变量添加双引号
编辑器·vim·excel
qq7422349843 天前
免费版Markdown 编辑器:Typora
大模型·编辑器·markdown
Run Freely9373 天前
Linux-01_2(vi / vim 编辑器)
linux·编辑器·vim
MediaTea3 天前
Python 编辑器:IDLE
开发语言·python·编辑器
php@king3 天前
安装xdebug调试工具(docker容器+vscode编辑器+xdebug)
vscode·docker·编辑器
景晁3 天前
(自用)vim的高级命令
linux·编辑器·vim