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
相关推荐
还是鼠鼠1 小时前
Node.js 中 Token 原理简单介绍 + 示例代码
linux·vscode·中间件·node.js·编辑器·vim·express
da-peng-song1 小时前
ArcGIS Desktop使用入门(四)——9版本与10版本区别
数据库·arcgis·编辑器
惊鸿醉2 小时前
⭐ Unity 使用Odin Inspector增强编辑器的功能:UIManager脚本实例
unity·编辑器·游戏引擎
叶羽西1 天前
Windows VsCode Terminal窗口使用Linux命令
ide·vscode·编辑器
夜月yeyue1 天前
VScode+OpenOCD+HTOS栈回溯在国产mcu芯片上完全调试
c语言·ide·vscode·单片机·嵌入式硬件·编辑器
James. 常德 student1 天前
Markdown 编辑器的使用
编辑器
weixin_748877001 天前
【Node.js中的错误处理:策略与最佳实践】
node.js·编辑器·vim
mytzs1231 天前
使用Vscode排除一些子文件搜索
vscode·编辑器
傻小胖1 天前
Node.js 中的 Buffer(缓冲区)
node.js·编辑器·vim
趣谈AI2 天前
使用Trae编辑器开发Python Api (FastApi 框架)
python·编辑器·fastapi