..

解决 YCM 安装 cmake 报错的问题

报错信息:
ERROR: Unable to find cmake executable in any of ['cmake3', 'cmake']. CMake is required to build ycmd

等待我们安装好了 cmake 以后还是继续报错

sudo pacman -S cmake

错误如下:

Searching Python 3.9 libraries...
Found Python library: /usr/lib64/libpython3.9.so
Found Python headers folder: /usr/include/python3.9
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "/tmp/ycm_build_483z79fi/CMakeFiles/CMakeOutput.log".
ERROR: the build failed.

这里一起是没有安装 make 的原因,我们安装一下 make 问题就解决了

解决方案:

sudo pacman -S make