From 8ca980130c85bfd85ca4c1db9de430af78477dac Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Sun, 4 Jun 2023 01:53:16 -0400 Subject: [PATCH] docs: change `set-rpath` to `add-rpath` so old rpath will not be removed Signed-off-by: Jinzhe Zeng --- doc/install/install-lammps.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ``` :::