Last active
November 3, 2022 16:54
-
-
Save tgroshon/98dc7e8b6b5c4f61507f3263e2e61ea7 to your computer and use it in GitHub Desktop.
Compile Emacs from source on Ubuntu-like system
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
#!/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
Relevant links: