Skip to content

Instantly share code, notes, and snippets.

@tgroshon
Last active November 3, 2022 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tgroshon/98dc7e8b6b5c4f61507f3263e2e61ea7 to your computer and use it in GitHub Desktop.
Save tgroshon/98dc7e8b6b5c4f61507f3263e2e61ea7 to your computer and use it in GitHub Desktop.
Compile Emacs from source on Ubuntu-like system
#!/bin/bash
sudo apt install build-essential # compilation tools
sudo apt build-dep emacs # install deps of previous emacs to get headstart
cd ~/Projects # change to dir to store emacs source
wget https://ftp.gnu.org/gnu/emacs/emacs-28.2.tar.xz # clone from github mirror
tar -xf emacs-28.2.tar.xz # checkout desired version branch
cd emacs-28.2/
./autogen.sh # creates configure script
./configure # creates makefile; check output for missing deps
make # compiles binary
src/emacs -Q # for test
sudo make install # install binary to system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment