Building packages with yes-all

Dear community

We have found an issue with the installation using make package-yes-all, make mpi does not work if you try to install all the packages with yes-all.
OS: Linux-Ubuntu 20.04.4 LTS (GNU/Linux 5.13.0-40-generic x86_64)
Lammps version: 29Sep2021

Any idea as to why this happens?
It works if you install just particular packages, the problems arises when try to install all of them with yes-all.

In collaboration with my student Ramon Castañeda-Cerdan


Using make yes-all is known to be a risky move, its better to install only the package you need, see for instance :


1 Like

Some packages have prerequisites and and depend on other software being installed, environment variables being set, files in lib/<package> copied and/or edited, libraries in lib/<package> compiled or similar things. All of this must be done before doing make yes-all.
There are detailed explanations. If you want to compile a version of LAMMPS that has only “safe” packages installed, do “make yes-most”.

We generally recommend to use CMake instead of the GNU make procedure if people are not very experienced with all the steps I mentioned before, since it does most of the steps during CMake configuration and then there is only one compilation for everything. You can still have package selections preset by loading a preset like cmake/presets/most.cmake

1 Like

Incidentally, I just had a meeting with the core LAMMPS developers where we decided to remove the “make yes-all” option (it made much more sense when it was added a long time ago) and the corresponding preset. That should just take away the temptation. “most” or “basic” are the sensible choices for most people.

1 Like