USER-MISC

parth@Assistant:/mnt/c/Users/parth/lammps-29Aug2024/src$ make yes-USER-MISC
Package USER-MISC does not exist
make: *** [Makefile:605: yes-USER-MISC] Error 1

I am facing this error.

my lammps version is 29Aug2024 stable version. And I am installing it on Ubuntu LTS 22.04.

Can anyone help

The error you are getting is quite clear: there is no USER-MISC package.
If you look at the documentation, you can see it yourself: 6.1. Available Packages — LAMMPS documentation

There used to be a USER-MISC package, but that was a long time ago.

Thanks a lot akohlmey. I could finally run lammps.

One more issue that concerns me here is, I have to run gcmc in my code but when I use lmp_mpi -in in.water it works well but when I run with the command lmp -in in.water, it shows the following error

ERROR: Unrecognized fix style ‘gcmc’ is part of the MC package which is not enabled in this LAMMPS binary. (src/modify.cpp:924)
Last command: fix all water gcmc 100 100 10 0 1235896 300.15 -0.5 0.01 mol 99 pressure 6.0

Please Help

The explanation is in the error message.

https://docs.lammps.org/Build_package.html

Hi @akohlmey , thankyou for the thoughtful reply.

As a beginner, I have read the documentation and trying to figure out the error.

It would be great if someone gives a brief explanation of how this works and why the error is happening.

I am unable to comprehend the error message.

As I already mentioned the error doesn’t arise when I use the command

lmp_mpi -in in.water

But it only comes when I use

lmp -in in.water.

And I have checked the MC Package is installed and I can access it through the lmp_mpi command but not with lmp command. So, it clearly shows that gcmc is both installed and enabled.

I doubt that that is a correct assessment.
Please run lmp -h and lmp_mpi -h and check the output.

Then you are in big trouble.

The explanation I can provide is exactly what is written in the manual and what common sense dictates. I don’t have the time or interest to spoon-feed you. That is outside the scope of this forum.
If this was a more complex and obscure error, I would be willing (and then in the process figure out a way to make the message more obvious), but not for something as obvious as this one.

This. The MC package is clearly not installed in your lmp binary.