Forked from zoliky/installing-emacs-from-source-on-debian.txt
Last active
February 29, 2024 09:36
-
-
Save jontsai/a2889b4eacef65120bdc57c9e7230979 to your computer and use it in GitHub Desktop.
Installing Emacs 29.2 from source on Debian v5 (v12?)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://ioflood.com/blog/install-emacs-command-linux/ | |
Installation | |
------------ | |
1. Install the build dependencies for Emacs: | |
$ sudo apt build-dep emacs | |
$ sudo apt install libtree-sitter-dev | |
2. Download and unpack the Emacs archive: | |
$ wget http://ftp.gnu.org/gnu/emacs/emacs-29.2.tar.gz | |
$ tar -xvf emacs-29.2.tar.gz | |
3. Install Emacs in HOME/.local/emacs/: | |
$ ./autogen.sh | |
# $ ./configure --prefix="$HOME/.local/emacs/" --without-compress-install --with-native-compilation --with-json --with-mailutils --with-tree-sitter CC=gcc-12 | |
$ ./configure --prefix="$HOME/.local/emacs/" --with-xpm=ifavailable --with-gif=ifavailable --with-gnutls=ifavailable | |
$ make -j 4 # Replace the number 4 with the number of cores that your CPU has. | |
$ make install | |
NOTE: If you're using Wayland, you might want to consider compiling Emacs 29 with the '--with-pgtk' option as well. | |
Uninstallation | |
-------------- | |
Change directory to the folder containing the source and perform the following steps: | |
$ sudo make uninstall | |
$ make clean | |
$ make distclean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment