CentOS7 emacs安装错误:找不到X工具包

CentOS7 emacs安装错误:找不到X工具包

运行时:

sudo ./configure

我收到错误:

checking for libXaw... configure: error: No X toolkit could be found. If you are sure you want Emacs compiled without an X toolkit, pass --with-x-toolkit=no to configure. Otherwise, install the development libraries for the toolkit that you want to use (e.g. Gtk+) and re-run configure.

根据这个回答,我运行以下命令来安装 X 工具包:

sudo yum install build-essential texinfo libx11-dev libxpm-dev libjpeg-dev libpng-dev libgif-dev libtiff-dev libgtk2.0-dev libncurses-dev libxpm-dev automake autoconf

但是,当我运行配置时,我收到相同的错误。如何成功解决依赖错误并安装 emacs?

答案1

这些开发包适用于 Debian/Ubuntu/Mint 系列,这就是它们以dev.

您正在寻找的开发包是libpng-devel libtiff-devel openjpeg-devel gtk2-devel ncurses-devel giflib-devel libX11-devel libXpm-devel。开发包最终devel适用于 Fedora/RHEL/CentOS 系列。

正如您所拥有的sudo,您也可以这样做,yum install emacs这要容易得多。

相关内容