CentOS installation and configuration cmake

zhoulf 2013-02-03 original

Installation Notes##

Installation environment: CentOS-6.3
Installation method: source code compilation and installation
Software: cmake-2.8.10.2.tar.gz
Download link: http://www.cmake.org/cmake/resources/software.html

Installation premise##

G++ and ncurses-devel have been installed in the system, if not installed, use the following command to install:

[ root@admin /]# yum install gcc-c++[root@admin /]# yum install ncurses-devel

Install cmake

Upload the cmake-2.8.10.2.tar.gz file to /usr/local and perform the following operations:

[ root@admin local]# cd /usr/local[root@admin local]# tar -zxv -f cmake-2.8.10.2.tar.gz // Unzip the compressed package [root@admin local]# rm -rf cmake-2.8 .10.2.tar.gz // Delete the compressed package [root@admin local]# cd cmake-2.8.10.2[root@localhost cmake-2.8.10.2]# ./configure[root@localhost cmake-2.8.10.2]# make [root@localhost cmake-2.8.10.2]# make install[root@admin local]# mv cmake-2.8.10.2 cmake // modify folder name

Add environment variables##

Use vi to add variables in the file /etc/profile to make it permanent:

[ root@admin local]# vi /etc/profile // Modify environment variables

Append the following two lines of code at the end of the file:

PATH=/usr/local/cmake/bin:$PATHexport PATH

Then do the following:

[ root@admin local]# source /etc/profile //Make the modification effective [root@admin local]# echo $PATH //View the PATH value

Verify cmake installation##

[ root@admin local]# cmake --versioncmake version 2.8.10.2

Congratulations, the installation was successful.

Solution: (it seems to work too)

yum install cmake -y

Recommended Posts

CentOS installation and configuration cmake
Centos mysql installation and configuration
Centos7 installation and configuration prometheus
CentOS 7 installation and configuration PPTP
Centos7.5 installation and configuration MongoDB4.0.4
CentOS 7 installation and configuration PPTP
Centos7 installation and configuration of Jenkins
Centos7 hadoop cluster installation and configuration
Java-JDK installation and configuration under CentOS
CentOS 7 Tomcat service installation and configuration
CentOS NTP server installation and configuration
Centos7 mysql database installation and configuration
CentOS 7 system installation and configuration graphic tutorial
MySQL 8.0 installation, deployment and configuration under CentOS 6/7
OpenMPI-Ubuntu installation and configuration
Installation and configuration of redis under centos7
Mysql8.0.15 installation configuration (centos7)
Centos7 hive stand-alone mode installation and configuration
Installation and configuration of JDK in CentOS 7 system
CentOS 6.5 system installation and configuration graphic tutorial (detailed graphic)
CentOS 7 installation and configuration graphic tutorials under VMware10
Installation and configuration of rsync server under CentOS 6.5
Installation and configuration of CentOS 7 in VMware Workstation
MySQL 8.0 installation, deployment and configuration tutorial on CentOS 8
Ubuntu16.04 installation and simple configuration
centos7 kvm installation and use
CentOS7 postgresql installation and use
Ubuntu PostgreSQL installation and configuration
Centos7 elk7.1.1 installation and use
2019-07-09 CentOS7 installation
centos7_1708 installation
Centos6.5 installation and deployment of KVM
CentOS7.2 and Nginx configuration virtual host
CentOS 7.X system installation and optimization
Centos 7 RAID 5 detailed explanation and configuration
Ubuntu 19.1 installation and configuration Chinese environment
Configuration and beautification after Ubuntu installation (1)
Nginx installation and configuration load (ubuntu12.04)
CentOs7 installation and deployment Zabbix3.4 original
Erlang 20.2 installation and deployment under CentOS 7
Ubuntu configuration source and installation software
Detailed explanation of Spark installation and configuration tutorial under centOS7
Centos5 installation guide
CentOS7.0 network configuration
Installation and use of Mysql under CentOS
CentOS 7.0 network configuration
Centos7.5 configuration java environment installation tomcat explanation
Centos-6.5 installation and deployment of LNMP environment
Linux kernel compilation and CentOS system installation
Python - centos6 installation
Centos7.6 operating system installation and optimization record
Centos7 installation and deployment of gitlab server
CentOS7 basic configuration
Docker installation (CentOS7 installation)
Centos python3 compile installation and compile gcc upgrade
Zabbix installation and deployment and localization under CentOS
CentOS7 installation zabbix 4.0 tutorial (graphics and text)
Jenkins installation and deployment tutorial under CentOS 7
CentOS7 docker installation
KVM installation and preliminary use under CentOS 7.2
Centos MySQL8 configuration