diff --git a/doc/install/install-lammps.md b/doc/install/install-lammps.md index 539ef6b738..bdc43b99ff 100644 --- a/doc/install/install-lammps.md +++ b/doc/install/install-lammps.md @@ -69,9 +69,9 @@ ${deepmd_root}/bin/lmp -h ``` :::{note} -If `${tensorflow_root}`, `${deepmd_root}`, or the path to TensorFlow Python package if applicable is different from the prefix of LAMMPS, you need to append the library path to [`RUNPATH`](https://man7.org/linux/man-pages/man8/ld.so.8.html) of `liblammps.so`. For example, +If `${tensorflow_root}`, `${deepmd_root}`, or the path to TensorFlow Python package if applicable is different from the prefix of LAMMPS, you need to append the library path to [`RUNPATH`](https://man7.org/linux/man-pages/man8/ld.so.8.html) of `liblammps.so`. For example, use patchelf >= 0.13 ```sh -patchelf --set-rpath "${tensorflow_root}/lib" liblammps.so +patchelf --add-rpath "${tensorflow_root}/lib" liblammps.so ``` :::