Now that the installation is complete, the installation of cmake is relatively simple, the following are the problems encountered during the installation process: Ln -s /usr/local/bin/cmake /usr/bin/cmake This prefix can be removed as long as the share, bin, man and doc directories are moved relative to each other. For example, the linux-x8664 tar file is all under the directory cmakelinux-x8664. If you have installed yum locally, you need to uninstall it yum remove cmake They are prefixed by the version of CMake. View the compiled version: ln -s /usr/local/bin/cmake /usr/bin/cmake And now everything is running as it should. But after running sudo apt-get remove cmake, I've noticed the the only version removed was the 'bad' version (3.10.2). Repository Package name Version Category Maintainer(s) Adlie Linux current system: cmake-doc: 3.16.
Generally, there will be no problems when the gcc environment and libstdc++.so.6 are okay. Since there was a issue with both versions, I thought the best plan of action was to simply remove all version and install the one I wanted. The compilation process is as follows: wget -c Ĭmake is relatively simple to compile. It is recommended to compile the downloaded source code (download the binary file, although it can be executed, but you don’t know what dynamic link library will report an error, and it is difficult to solve a problem)
Official website transmission: Download the latest cmake The default cmake version on Centos7 is version 2.8.11, which is a relatively low version, so we need to upgrade cmake
When we are doing some applications, the compilation error is reported that the cmake version is too low.