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
相关推荐
智源研究院官方账号5 小时前
众智FlagOS 1.6发布,以统一架构推动AI硬件、软件技术生态创新发展
数据库·人工智能·算法·架构·编辑器·硬件工程·开源软件
咬人喵喵9 小时前
SVG 答题类互动模板汇总(共 16 种/来自 E2 编辑器)
编辑器·svg·e2 编辑器
漫步星河11 小时前
unityEditor Note 编辑器笔记本
编辑器
咬人喵喵11 小时前
16 类春节核心 SVG 交互方案拆解(E2 编辑器实战)
前端·css·编辑器·交互·svg
lixzest13 小时前
Vim 快捷键速查表
linux·编辑器·vim
环黄金线HHJX.13 小时前
MCP: Tuan编程 + Qt架构 + QoS - 量子-经典混合计算管理控制平台
开发语言·qt·算法·编辑器·量子计算
全干工程师—1 天前
在liunx下使用VScode检测到 #include 错误。请更新 includePath问题的解决方法
ide·vscode·编辑器
2501_941664961 天前
面向微服务分布式限流与动态降级的互联网系统高可用设计与多语言工程实践分享
ide·emacs·visual studio
神码编程1 天前
【Unity】 HTFramework框架(六十九)Log在编辑器日志中自定义点击事件
unity·编辑器·游戏引擎