I am very grateful for your help.
i started again from a fresh install ubuntu, and i have used the code to add the path into .bashrc that you provieded, but during the "cmake" step for LAMMPS, it still mentioned that "the KIM-package not found. we will download and build our own"
and here is the details where i began from a fresh new ubuntu system.
i am a Chinese user, so i change the souce list by a mirror source for China provided by Aliyun.
$ sudo apt-get update
$ sudo apt-get upgrade
$ apt install build-essential;
$ apt install cmake
$ apt install gfortran
$ apt update
$ apt upgrade
here i upgrade my ubuntu system and install some basic software. then i reboot the system.
then i download mpich3 from their official website and install it.
$ tar -zxvf mpich3.tar.gz
$ cd mpich
$ ./configure --enable-shared=yes
$ make
$ make install
then i follow the D.1 Typical Build Scenario to install the KPI-API, but i didn't delete the build folder as suggesting in the D.1.
and the example provided in the D.1 can be held.
then i use the lammps-stable.tar.gz download from their official website. because use the code "git" to get LAMMPS is too slow here. the LAMMPS version is 7Aug19.
then i unpackage it in the main folde (/home/herve)
then
$ cd lammps
$ mkdir build
$ cd build
before the cmake, i use the presets of all_on.cmake, but i delete all the user package and other package i don't need, and there are BODY KIM MANYBODY MOLECULE MPIIO in the cmake file.
then i use the code
$ echo "PATH=\$PATH:/usr/local/bin" >> ~/.bashrc
close the terminal, open another ternimal, use su to get root, and return to the /home/herve/lammps/build folder
then i use
$ cmake -C ../cmake/presets/all_on.cmake -D PKG_GPU=off ../cmake
and the feedback including "the KIM-package not found. we will download and build our own"
in fact, during the process, i have used 3 or four time $ echo "PATH=\$PATH:/usr/local/bin" >> ~/.bashrc
i don't know whether this matter.
Thanks again for your patience.
在 2019年12月20日星期五 UTC+8下午10:14:50,Yaser Afshar写道: