# Install dependencies for gdb and m4
sudo apt install binutils binutils-dev binutils-source
sudo apt install help2man autoconf automake texinfo bison flex
# Terminal UI dependencies for GDB
sudo apt install libncurses5 libncurses5-dev libncursesw5 libncursesw5-dev

# Install m4 from source (3 years ahead of version in apt)
cd ~/Downloads