Install Emacs 27.2 on openSUSE LEAP 15.3 from a source tarball
(Posted on 2021-11-15)
Install pre-requisited tools
sudo zypper install make gcc automake autoconf libtool aclocal wget
sudo zypper si -d emacs
Download Emacs source tarball
wget https://ftp.gnu.org/pub/gnu/emacs/emacs-27.2.tar.gz
Extract and change directory
tar xzvf emacs-27.2.tar.gz
cd emacs-27.2
Generate makefiles
./configure --prefix=/opt > log
Make
make -j `nproc`
Install
sudo make install
Add path
Add the line below to ~/.bashrc by nano ~/.bashrc
export PATH="/opt/bin:$PATH"