github twitter linkedin email rss
Building Emacs from source
Apr 11, 2020
One minute read

Steps needed to install emacs locally, mantaining pre-existing installation intact. In the end you will two different versions of emacs running in your system.

sudo apt-get install autoconf automake libtool texinfo build-essential xorg-dev libgtk-3-dev libjpeg-dev libncurses5-dev libdbus-1-dev libgif-dev libtiff-dev libm17n-dev libpng-dev librsvg2-dev libotf-dev libgnutls28-dev libxml2-dev libxpm-dev
cd ~/Downloads
tar -xf emacs-26.3.tar.xz
cd emacs-26.3.tar.xz
  • Run configure setting the prefix to the local folder in home directory:
./configure --with-mailutils --prefix="${HOME}/local"
  • Build the components and istall it:
make
make install

To run it, issue:

/home/local/bin/emacs

The local installation, if any, should still work normally.


Back to posts


Hey, be the first who comment this article.