今天安装了一下cmake,发现有点小问题,所以记录了一下:
curl -OL https://github.com/Kitware/CMake/releases/download/v3.22.0-rc1/cmake-3.22.0-rc1.tar.gz
tar -xvf cmake-3.22.0-rc1
./bootstrap
make
make install
安装完后测试:
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
解决方案
我这里选一个优雅的方式安装:
pip install cmake
ln -s /usr/local/bin/cmake /usr/bin/cmake
就可以啦
cmake --version
cmake version 3.21.3