Installing the new (lastest stable release) LAMMPS Update

Hi,

I have been working on compiling the latest stable release of LAMMPS from GitHub - lammps/lammps: Public development project of the LAMMPS MD software package on Kestrel (nrel). I followed the general cmake make procedure based on LAMMPS documentation:

cd lammps                # change to the LAMMPS distribution directory
mkdir build; cd build    # create and use a build directory
cmake ../cmake           # configuration reading CMake scripts from ../cmake
cmake --build .          # compilation (or type "make")

After this, I run ‘make install’ and generate the lmp executable. I receive the following error:
[~] $ lmp
lmp: error while loading shared libraries: libjpeg.so.9: cannot open shared object file: No such file or directory

I was able to trace the source of this error by running,
ldd $(which lmp)
And I see the following:
libjpeg.so.9 => not found

In the CMakeLists.txt I don’t see any place where libjpeg.so.9 is being called. I would really appreciate some help in fixing this. Thanks

https://docs.lammps.org/Build_settings.html#output-of-jpeg-png-and-movie-files