cmake uninstall, install and reinstall

cmake download link

1. Uninstall the old version of cmake

sudo apt-get autoremove cmake

2. Download other versions of cmake

cmake download link decompress
if it is downloaded to the mounted path (such as wsl needs cp to wsl)

3. Installation

# 进入wsl
mkdir /packages
cp -r /mnt/g/tools/cmake-3.20.0-rc3 /packages
cd /mnt/g/tools/cmake-3.20.0-rc3/cmake-3.20.0
./bootstrap
make
make install

Overload needs to be executed

rm -r CMakeCache.txt CMakeFiles/ Bootstrap.cmk/
./bootstrap
make
make install

Guess you like

Origin blog.csdn.net/weixin_40437821/article/details/114450186