Install compilers etc
You will need to ensure that compilers for C, C++, Fortran are installed. Additionally, LAMPS also requires libgtk2.0-dev. In Ubuntu apt is the way to install software. For other Linux flavours, the commands would be different (Eg. yum in Fedora and Scientific Linux).
Instructions for Ubuntu Linux:
Login. Open a terminal window (Ctrl+Alt+T) and type these commands:
$ sudo apt update (install all updates. Takes long.)
$ sudo apt install gcc (C compiler)
$ sudo apt install g++ (C++ compiler)
$ sudo apt install gfortran (Fortran compiler)
$ sudo apt install build-essential (build tools)
$ sudo apt install libgtk2.0-dev (needed for LAMPS. Takes long.)
$ sudo apt install libcanberra-gtk-module (needed for LAMPS)