[lammps-users] executing lammps from a mac

Hi,

I have recently switched to a mac and am looking to get things running but am frustratingly stuck on something seemingly simple. I have followed all the instructions for cmake, in my build folder I can see the executable titled “lmp” but when I try to execute an example file I keep getting an error message saying:

liammorrissey@Liams-MacBook-Air ELASTIC % lmp -in in.elastic

zsh: command not found: lmp

When I did cmake …/cmake/ I have made sure that the executable name was lmp, so I really am at a loss here.

I have tried copying this executable into this folder but it still doesn’t work. Haven’t had this issue with Windows and it obviously rendering me essentially useless right now. Any suggestions?

Much appreciated.

Liam

Does ./lmp instead of lmp work?
In which case the current directory is likely not in your path.

Steve