BuildingEmacs
- Source: Compiling GNU Emacs 30 on Debian 12
- Author: TRITON FAMME
- Year: 2025
Highlights / Notes
Note: the article builds Emacs with tree-sitter, which isn't really necessary for what I was looking for.
- Install the requesite dependencies:
sudo apt install git autoconf make texinfo gnutls-bin libgccjit-12-dev \ gcc libgtk2.0-dev libgnutls28-dev libxpm-dev libgif-dev \ libncurses-dev libsqlite3-dev libmagickwand-dev \ ag python3-pydot
- Optional: clone and install tree-sitter (standard make && make install).
git clone https://github.com/tree-sitter/tree-sitter.git cd tree-sitter/ make sudo make install sudo ldconfig
- Clone and build emacs. You may have to install some additional
dependencies. If you want tree-sitter, make sure to add
--with-tree-sitter
.
git clone -b master git://git.sv.gnu.org/emacs.git cd emacs ./autogen.sh ./configure --with-native-compilation --with-mailutils --with-imagemagick make sudo make install