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
相关推荐
xfmtznfl2165pv2 小时前
如何在VSCode中设置工作区特定的选项?
ide·vscode·编辑器
wukan8881 天前
【SMTP】在线配置测试工具,如何配置接口?
git·网络协议·编辑器
伊卡洛斯az1 天前
vim的跳转看头文件与分屏
linux·编辑器·vim
散峰而望1 天前
基本魔法语言函数(一)(C语言)
c语言·开发语言·编辑器·github
Jonathan Star2 天前
Vue JSON结构编辑器组件设计与实现解析
vue.js·编辑器·json
sonrisa_2 天前
下载CUDA Toolkit和VS后,配置vscode
ide·vscode·编辑器
无锋起浪2 天前
Vscode参数设置及使用记录ubuntu2204(更新中)
ide·vscode·编辑器
咯哦哦哦哦2 天前
vscode arm交叉编译 中 cmakeTools 编译器设置
linux·arm开发·vscode·编辑器
逐步前行3 天前
C/C++图形库_EasyX 环境配置(VSCode+MinGW )
ide·vscode·编辑器
名剑走天下3 天前
在 VSCode 中:修改快捷键
ide·vscode·编辑器