I tried to install the voronoi package on lammps with cmake on centos7, and voro++lib was not installed before, but when I reinstall again I get this error, how can I deal with it so that it can be redetected? The error was generated when I last configured the file and it didn’t respond after running, so I shut down the server directly, and using the same process again caused such a problem.
[hfan@mu01 build]$ cmake …/cmake
– The CXX compiler identification is unknown
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - failed
– Check for working CXX compiler: /opt/software/intel2018/impi/2018.1.163/intel64/bin/mpicxx
– Check for working CXX compiler: /opt/software/intel2018/impi/2018.1.163/intel64/bin/mpicxx - broken
CMake Error at /usr/local/share/cmake-3.20/Modules/CMakeTestCXXCompiler.cmake:59 (message):
The C++ compiler
"/opt/software/intel2018/impi/2018.1.163/intel64/bin/mpicxx"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/hfan/fzli/lammps-software/lammps/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_308b7/fast && /usr/bin/gmake -f CMakeFiles/cmTC_308b7.dir/build.make CMakeFiles/cmTC_308b7.dir/build
gmake[1]: Entering directory `/home/hfan/fzli/lammps-software/lammps/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_308b7.dir/testCXXCompiler.cxx.o
/opt/software/intel2018/impi/2018.1.163/intel64/bin/mpicxx -o CMakeFiles/cmTC_308b7.dir/testCXXCompiler.cxx.o -c /home/hfan/fzli/lammps-software/lammps/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
/opt/software/gcc/gcc-9.2.0/libexec/gcc/x86_64-pc-linux-gnu/9.2.0/cc1plus: error while loading shared libraries: libmpfr.so.6: cannot open shared object file: No such file or directory
gmake[1]: *** [CMakeFiles/cmTC_308b7.dir/testCXXCompiler.cxx.o] Error 1
gmake[1]: Leaving directory `/home/hfan/fzli/lammps-software/lammps/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_308b7/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:17 (project)
– Configuring incomplete, errors occurred!
See also “/home/hfan/fzli/lammps-software/lammps/build/CMakeFiles/CMakeOutput.log”.
See also “/home/hfan/fzli/lammps-software/lammps/build/CMakeFiles/CMakeError.log”.