Centos install the latest version of cmake

When we are doing some applications, the compilation error is reported that the cmake version is too low. The default cmake version on Centos7 is version 2.8.11, which is a relatively low version, so we need to upgrade cmake

Official website transmission: https://cmake.org/

Download the latest cmake

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)

The compilation process is as follows:

wget -c https://github.com/Kitware/CMake/releases/download/v3.17.0-rc3/cmake-3.17.0-rc3.tar.gz
tar zxvf cmake-3.17.0-rc3.tar.gz
cd cmake-3.17.0-rc3./bootstrap
gmake
gmake install

cmake is relatively simple to compile. Generally, there will be no problems when the gcc environment and libstdc++.so.6 are okay.
View the compiled version:

ln -s /usr/local/bin/cmake /usr/bin/cmake
cmake --version

If you have installed yum locally, you need to uninstall it

yum remove cmake
ln -s /usr/local/bin/cmake /usr/bin/cmake
cmake --version

Now that the installation is complete, the installation of cmake is relatively simple, the following are the problems encountered during the installation process:

summary of a problem:

Recommended Posts

Centos install the latest version of cmake
Centos7.6 install MySQL+Redis (latest version)
Install the latest OpenCV4.3 under Centos8
Install and configure the latest version of RabbitMQ-3.8.5 (with video)
Install the latest Python 3.6 version on Ubuntu
[Video] Teach you how to install the latest Linux version of QQ under Centos 8
Install the latest version of Thunderbird and exchange plugins under ubuntu
Install the CPU version of Caffe on Ubuntu
Install the old version of seurat under Ubuntu
Ubuntu install the latest Python 3.
Centos install high version GCC
Centos7 install k8s cluster 1.15.0 version
CentOS 8.0.1905 install ZABBIX4.4 version (verified)
CentOS6 mininal install CouchDB2 detailed version
The latest Centos7 installation Mysql8 guide
1.5 Install Centos7
CentOS8 Chinese input method (2020-10-31 latest version) installation method
Install mysql8.0.13 version under Linux CentOS7 system
Centos 8.1.1911 solves the problem of yum reinstallation
The fourth installment of Zabbix under CentOs7
[Centos8] The bumpy process of installing docker
Centos7.3 install nginx
VMware Fusion install CentOS7 and configure the network
CentOS7.2 install Mysql5.7.13
CentOS install Redmine
CentOS7 install MySQL
Centos7 install protobuf
CentOS 7 install Docker
Summarize the knowledge points of Centos7 system reinforcement
CentOS7 install GlusterFS
CentOS 7.4 install Zabbix 3.4
CentOS7 install Docker
Centos6.5 install Tomcat
Solve the problem that Centos8 cannot install docker
Vmware install CentOS6
CentOS 7 install Hadoop 3.0.0
Centos7 install Python2.7
Centos 7.6 install seleniu
The easiest way to install Chrome on CentOS 6
Download of VM virtual machine and install centos7
CentOS 7.3 install Zabbix3
Centos7 install LAMP+PHPmyadmin
CentOS install mysql
CentOS install openjdk 1.8
The actual combat of rpm packaging under CentOS6
CENTOS6.5 install CDH5.12.1 (1)
CentOS install PHP
CentOS6 install mist.io
Centos7 install Docker
CentOS7 install mysql
centOs install rabbitMQ
CentOS 7 install MySQL 5.6
Centos7 install Nginx
CentOS6.5 install CDH5.13
Centos7 install docker18
Centos install Python3
centos7 install docker
CentOS install jdk
centos7 install nginx-rtmp
CentOS8 install MySQL8.0
Centos6.3 install KVM