[lammps-users] Lammps on macOSX using unix shell

Dear all,
I have installed LAMMS version 10Mar2021 using cmake with presets most.common and nolib. And I finished using make install for having all in $HOME/.local
All this worked fine without error message.

but when wishing run lammps using ./local/binlmp ./local directory is not recognized. For verifying I tried cd ./local and message is ./local is not a directory.

cd ./local
-bash: cd: ./local: No such file or directory

when traying ls -all .local is present and defined as a directory as other similar directories say .ipython, …

drwxr-xr-x 5 Pascal staff 160 11 jul 2018 .ipython
drwxr-xr-x 3 Pascal staff 96 11 jul 2018 .jupyter
drwxr-xr-x 5 Pascal staff 160 26 mar 10:15 .local

What is wrong when setting up ?

my command list

cd lammps-10Mar21

mkdir build; cd build

cmake -C …/cmake/presets/most.cmake -C …/cmake/presets/nolib.cmake …/cmake

cmake --build .

make install

Ont he other hand, calling lmp from build directory works.

./Documents/lammps-10Mar21/build/lmp
LAMMPS (10 Mar 2021)

Thanks a lot in advance
Best regards
Pascal

Dear all,
I have installed LAMMS version 10Mar2021 using cmake with presets most.common and nolib. And I finished using make install for having all in $HOME/.local
All this worked fine without error message.

but when wishing run lammps using ./local/binlmp ./local directory is not recognized. For verifying I tried cd ./local and message is ./local is not a directory.

cd ./local
-bash: cd: ./local: No such file or directory

when traying ls -all .local is present and defined as a directory as other similar directories say .ipython, …

./local is a directory “local” in the current folder “.” but not “${HOME}/.local” or “~/.local” or “./.local” in case you are in “$HOME” as your current working directory.

so to execute LAMMPS from the local installation, you either need to add “{HOME}/.local/bin" to your PATH environment (and "{HOME}/.local/lib” to DYLD_LIBRARY_PATH) and then use plain “lmp” or use the full path with “~/.local/bin/lmp” (but you might still need to set DYLD_LIBRARY_PATH unless you have configured LAMMPS with “-DLAMMPS_INSTALL_RPATH=on”) or use “./.local/bin/lmp” in case you are in “${HOME}”.

axel.

Hi Axel
Thanks a lot
Best
Pascal