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