Skip to content

Instantly share code, notes, and snippets.

@shrysr
Created February 26, 2020 01:20
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 shrysr/7501c049f094496d5ee2c8ddfbe6336d to your computer and use it in GitHub Desktop.
Save shrysr/7501c049f094496d5ee2c8ddfbe6336d to your computer and use it in GitHub Desktop.
Emacs 26.3 install from source on Ubuntu 18.04

Installing emacs 26.3 from source on Ubuntu v18.04

These appear to be the minimum number of libraries which need to be installed to get Emacs running:

sudo apt-get install libgtk-3-dev \
     libxpm-dev \
     gnutls-dev \
     libncurses5-dev \
     libx11-dev \
     libxpm-dev \
     libjpeg-dev \
     libpng-dev \
     libgif-dev \
     libtiff-dev \
     libgtk2.0-dev

The apt-get build-dep emacs25/emacs24/emacs command(s) did not seem to work without adding a particular source.

The next step is to download the latest emacs source. As such v26.3 is a reasonable version to have for the foreseeable future.

mkdir ~/source/
cd ~/source
wget "http://ftp.gnu.org/gnu/emacs/emacs-26.3.tar.gz"
tar xf emacs-26.3.tar.gz
cd emacs-26.3
./configure
make 
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment