lmp command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
lmp: command not found
or when using sudo you get the following error message
sudo: lmp: command not found
Solutions to lmp: command not found
How To Fix lmp: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu lmp is provided by lammps package.
lammps is:
LAMMPS is a classical molecular dynamics code, and an acronym for Large-scale Atomic/Molecular Massively Parallel Simulator.
LAMMPS has potentials for soft materials (biomolecules, polymers) and solid-state materials (metals, semiconductors) and coarse-grained or mesoscopic systems. It can be used to model atoms or, more generically, as a parallel particle simulator at the atomic, meso, or continuum scale.
LAMMPS runs on single processors or in parallel using message-passing techniques and a spatial-decomposition of the simulation domain. The code is designed to be easy to modify or extend with new functionality.
To fix this problem, we can install more using the command below.
sudo apt-get -y install lammps
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install lammps.
sudo apt -y install lammps
Or if you have aptitude installed you can use the following command.
sudo aptitude install lammps
Summary
In this tutorial we learn how to fix lmp command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.