DEV Community

Vee Satayamas
Vee Satayamas

Posted on

Install Emacs 27.2 on openSUSE LEAP 15.3 from a source tarball

Install pre-requisited tools

sudo zypper install make gcc automake autoconf libtool aclocal wget
sudo zypper si -d emacs
Enter fullscreen mode Exit fullscreen mode

Download Emacs source tarball

wget https://ftp.gnu.org/pub/gnu/emacs/emacs-27.2.tar.gz
Enter fullscreen mode Exit fullscreen mode

Extract and change directory

tar xzvf emacs-27.2.tar.gz
cd emacs-27.2
Enter fullscreen mode Exit fullscreen mode

Generate makefiles

./configure --prefix=/opt > log
Enter fullscreen mode Exit fullscreen mode

Make

make -j `nproc`
Enter fullscreen mode Exit fullscreen mode

Install

sudo make install
Enter fullscreen mode Exit fullscreen mode

Add path

Add the line below to ~/.bashrc by nano ~/.bashrc

export PATH="/opt/bin:$PATH"
Enter fullscreen mode Exit fullscreen mode

Top comments (0)