编译安装Emacs遇到的问题

error: No X toolkit could be found

1
2
3
4
5
6
7
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.

--with-x-toolkit=no

运行以下命令:

1
# apt install libgtk-3-dev

error: The following required libraries were not found

1
2
3
4
5
6
configure: error: The following required libraries were not found:
libXpm libjpeg libgif/libungif libtiff
Maybe some development libraries/packages are missing?
To build anyway, give:
--with-xpm=ifavailable --with-jpeg=ifavailable --with-gif=ifavailable --with-tiff=ifavailable
as options to configure.

运行以下命令:

1
2
3
4
# apt install libxpm-dev
# apt install libjpeg-dev
# apt install libgif-dev
# apt install libtiff-dev