CMake安装(源码方式)

Posted 盈月

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CMake安装(源码方式)相关的知识,希望对你有一定的参考价值。

CMake主页是
https://cmake.org/download/

一、不指定安装目录方式(不需要配置环境变量)

1.安装必备包(存在的包不用卸载,yum会自动更新)
yum install -y gcc gcc-c++ make automake ncurses-devel git wget curl

[root@localhost zhoujianxu]# yum install -y gcc gcc-c++ make automake ncurses-devel git wget curl
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirrors.163.com
 * extras: mirrors.cn99.com
 * updates: mirror.h1host.ru
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package automake.noarch 0:1.11.1-4.el6 will be installed
--> Processing Dependency: autoconf >= 2.62 for package: automake-1.11.1-4.el6.noarch
---> Package curl.i686 0:7.19.7-35.el6 will be updated
---> Package curl.i686 0:7.19.7-52.el6 will be an update
--> Processing Dependency: libcurl = 7.19.7-52.el6 for package: curl-7.19.7-52.el6.i686
---> Package gcc.i686 0:4.4.7-3.el6 will be updated
---> Package gcc.i686 0:4.4.7-17.el6 will be an update
--> Processing Dependency: libgomp = 4.4.7-17.el6 for package: gcc-4.4.7-17.el6.i686
--> Processing Dependency: cpp = 4.4.7-17.el6 for package: gcc-4.4.7-17.el6.i686
--> Processing Dependency: libgcc >= 4.4.7-17.el6 for package: gcc-4.4.7-17.el6.i686
---> Package gcc-c++.i686 0:4.4.7-17.el6 will be installed
--> Processing Dependency: libstdc++-devel = 4.4.7-17.el6 for package: gcc-c++-4.4.7-17.el6.i686
--> Processing Dependency: libstdc++ = 4.4.7-17.el6 for package: gcc-c++-4.4.7-17.el6.i686
---> Package git.i686 0:1.7.1-4.el6_7.1 will be installed
--> Processing Dependency: perl-Git = 1.7.1-4.el6_7.1 for package: git-1.7.1-4.el6_7.1.i686
--> Processing Dependency: perl(Git) for package: git-1.7.1-4.el6_7.1.i686
--> Processing Dependency: perl(Error) for package: git-1.7.1-4.el6_7.1.i686
--> Processing Dependency: libssl.so.10(libssl.so.10) for package: git-1.7.1-4.el6_7.1.i686
--> Processing Dependency: libcrypto.so.10(libcrypto.so.10) for package: git-1.7.1-4.el6_7.1.i686
---> Package make.i686 1:3.81-20.el6 will be updated
---> Package make.i686 1:3.81-23.el6 will be an update
---> Package ncurses-devel.i686 0:5.7-4.20090207.el6 will be installed
--> Processing Dependency: ncurses-libs = 5.7-4.20090207.el6 for package: ncurses-devel-5.7-4.20090207.el6.i686
---> Package wget.i686 0:1.12-1.8.el6 will be updated
---> Package wget.i686 0:1.12-8.el6 will be an update
--> Running transaction check
---> Package autoconf.noarch 0:2.63-5.1.el6 will be installed
---> Package cpp.i686 0:4.4.7-3.el6 will be updated
---> Package cpp.i686 0:4.4.7-17.el6 will be an update
---> Package libcurl.i686 0:7.19.7-35.el6 will be updated
---> Package libcurl.i686 0:7.19.7-52.el6 will be an update
---> Package libgcc.i686 0:4.4.7-3.el6 will be updated
---> Package libgcc.i686 0:4.4.7-17.el6 will be an update
---> Package libgomp.i686 0:4.4.7-3.el6 will be updated
---> Package libgomp.i686 0:4.4.7-17.el6 will be an update
---> Package libstdc++.i686 0:4.4.7-3.el6 will be updated
---> Package libstdc++.i686 0:4.4.7-17.el6 will be an update
---> Package libstdc++-devel.i686 0:4.4.7-17.el6 will be installed
---> Package ncurses-libs.i686 0:5.7-3.20090208.el6 will be updated
---> Package ncurses-libs.i686 0:5.7-4.20090207.el6 will be an update
--> Processing Dependency: ncurses-base = 5.7-4.20090207.el6 for package: ncurses-libs-5.7-4.20090207.el6.i686
---> Package openssl.i686 0:1.0.0-27.el6 will be updated
---> Package openssl.i686 0:1.0.1e-48.el6_8.4 will be an update
---> Package perl-Error.noarch 1:0.17015-4.el6 will be installed
---> Package perl-Git.noarch 0:1.7.1-4.el6_7.1 will be installed
--> Running transaction check
---> Package ncurses-base.i686 0:5.7-3.20090208.el6 will be updated
---> Package ncurses-base.i686 0:5.7-4.20090207.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================================
 Package                                Arch                          Version                                      Repository                      Size
========================================================================================================================================================
Installing:
 automake                               noarch                        1.11.1-4.el6                                 base                           550 k
 gcc-c++                                i686                          4.4.7-17.el6                                 base                           4.3 M
 git                                    i686                          1.7.1-4.el6_7.1                              base                           4.5 M
 ncurses-devel                          i686                          5.7-4.20090207.el6                           base                           641 k
Updating:
 curl                                   i686                          7.19.7-52.el6                                base                           197 k
 gcc                                    i686                          4.4.7-17.el6                                 base                           8.2 M
 make                                   i686                          1:3.81-23.el6                                base                           386 k
 wget                                   i686                          1.12-8.el6                                   base                           483 k
Installing for dependencies:
 autoconf                               noarch                        2.63-5.1.el6                                 base                           781 k
 libstdc++-devel                        i686                          4.4.7-17.el6                                 base                           1.6 M
 perl-Error                             noarch                        1:0.17015-4.el6                              base                            29 k
 perl-Git                               noarch                        1.7.1-4.el6_7.1                              base                            28 k
Updating for dependencies:
 cpp                                    i686                          4.4.7-17.el6                                 base                           3.4 M
 libcurl                                i686                          7.19.7-52.el6                                base                           176 k
 libgcc                                 i686                          4.4.7-17.el6                                 base                           114 k
 libgomp                                i686                          4.4.7-17.el6                                 base                           136 k
 libstdc++                              i686                          4.4.7-17.el6                                 base                           302 k
 ncurses-base                           i686                          5.7-4.20090207.el6                           base                            61 k
 ncurses-libs                           i686                          5.7-4.20090207.el6                           base                           249 k
 openssl                                i686                          1.0.1e-48.el6_8.4                            updates                        1.5 M

Transaction Summary
========================================================================================================================================================
Install       8 Package(s)
Upgrade      12 Package(s)

Total download size: 28 M
Downloading Packages:
(1/20): autoconf-2.63-5.1.el6.noarch.rpm                                                                                         | 781 kB     00:01     
(2/20): automake-1.11.1-4.el6.noarch.rpm                                                                                         | 550 kB     00:00     
(3/20): cpp-4.4.7-17.el6.i686.rpm                                                                                                | 3.4 MB     00:04     
(4/20): curl-7.19.7-52.el6.i686.rpm                                                                                              | 197 kB     00:00     
(5/20): gcc-4.4.7-17.el6.i686.rpm                                                                                                | 8.2 MB     00:11     
(6/20): gcc-c++-4.4.7-17.el6.i686.rpm                                                                                            | 4.3 MB     00:06     
(7/20): git-1.7.1-4.el6_7.1.i686.rpm                                                                                             | 4.5 MB     00:06     
(8/20): libcurl-7.19.7-52.el6.i686.rpm                                                                                           | 176 kB     00:00     
(9/20): libgcc-4.4.7-17.el6.i686.rpm                                                                                             | 114 kB     00:00     
(10/20): libgomp-4.4.7-17.el6.i686.rpm                                                                                           | 136 kB     00:00     
(11/20): libstdc++-4.4.7-17.el6.i686.rpm                                                                                         | 302 kB     00:00     
(12/20): libstdc++-devel-4.4.7-17.el6.i686.rpm                                                                                   | 1.6 MB     00:02     
(13/20): make-3.81-23.el6.i686.rpm                                                                                               | 386 kB     00:00     
(14/20): ncurses-base-5.7-4.20090207.el6.i686.rpm                                                                                |  61 kB     00:00     
(15/20): ncurses-devel-5.7-4.20090207.el6.i686.rpm                                                                               | 641 kB     00:00     
(16/20): ncurses-libs-5.7-4.20090207.el6.i686.rpm                                                                                | 249 kB     00:00     
(17/20): openssl-1.0.1e-48.el6_8.4.i686.rpm                                                                                      | 1.5 MB     00:03     
(18/20): perl-Error-0.17015-4.el6.noarch.rpm                                                                                     |  29 kB     00:00     
(19/20): perl-Git-1.7.1-4.el6_7.1.noarch.rpm                                                                                     |  28 kB     00:00     
(20/20): wget-1.12-8.el6.i686.rpm                                                                                                | 483 kB     00:00     
--------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                   630 kB/s |  28 MB     00:44     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 1:perl-Error-0.17015-4.el6.noarch                                                                                                   1/32 
  Updating   : libcurl-7.19.7-52.el6.i686                                                                                                          2/32 
  Updating   : libgcc-4.4.7-17.el6.i686                                                                                                            3/32 
  Updating   : ncurses-base-5.7-4.20090207.el6.i686                                                                                                4/32 
  Installing : autoconf-2.63-5.1.el6.noarch                                                                                                        5/32 
  Updating   : libstdc++-4.4.7-17.el6.i686                                                                                                         6/32 
  Installing : libstdc++-devel-4.4.7-17.el6.i686                                                                                                   7/32 
  Updating   : ncurses-libs-5.7-4.20090207.el6.i686                                                                                                8/32 
  Updating   : 1:make-3.81-23.el6.i686                                                                                                             9/32 
  Updating   : openssl-1.0.1e-48.el6_8.4.i686                                                                                                     10/32 
  Installing : perl-Git-1.7.1-4.el6_7.1.noarch                                                                                                    11/32 
  Installing : git-1.7.1-4.el6_7.1.i686                                                                                                           12/32 
  Updating   : cpp-4.4.7-17.el6.i686                                                                                                              13/32 
  Updating   : libgomp-4.4.7-17.el6.i686                                                                                                          14/32 
  Installing : ncurses-devel-5.7-4.20090207.el6.i686                                                                                              15/32 
  Installing : automake-1.11.1-4.el6.noarch                                                                                                       16/32 
  Updating   : gcc-4.4.7-17.el6.i686                                                                                                              17/32 
  Installing : gcc-c++-4.4.7-17.el6.i686                                                                                                          18/32 
  Updating   : wget-1.12-8.el6.i686                                                                                                               19/32 
  Updating   : curl-7.19.7-52.el6.i686                                                                                                            20/32 
  Cleanup    : gcc-4.4.7-3.el6.i686                                                                                                               21/32 
  Cleanup    : ncurses-libs-5.7-3.20090208.el6.i686                                                                                               22/32 
  Cleanup    : libstdc++-4.4.7-3.el6.i686                                                                                                         23/32 
  Cleanup    : wget-1.12-1.8.el6.i686                                                                                                             24/32 
  Cleanup    : curl-7.19.7-35.el6.i686                                                                                                            25/32 
  Cleanup    : libcurl-7.19.7-35.el6.i686                                                                                                         26/32 
  Cleanup    : openssl-1.0.0-27.el6.i686                                                                                                          27/32 
  Cleanup    : libgcc-4.4.7-3.el6.i686                                                                                                            28/32 
  Cleanup    : ncurses-base-5.7-3.20090208.el6.i686                                                                                               29/32 
  Cleanup    : cpp-4.4.7-3.el6.i686                                                                                                               30/32 
  Cleanup    : libgomp-4.4.7-3.el6.i686                                                                                                           31/32 
  Cleanup    : 1:make-3.81-20.el6.i686                                                                                                            32/32 
  Verifying  : curl-7.19.7-52.el6.i686                                                                                                             1/32 
  Verifying  : git-1.7.1-4.el6_7.1.i686                                                                                                            2/32 
  Verifying  : perl-Git-1.7.1-4.el6_7.1.noarch                                                                                                     3/32 
  Verifying  : ncurses-devel-5.7-4.20090207.el6.i686                                                                                               4/32 
  Verifying  : automake-1.11.1-4.el6.noarch                                                                                                        5/32 
  Verifying  : libstdc++-devel-4.4.7-17.el6.i686                                                                                                   6/32 
  Verifying  : 1:perl-Error-0.17015-4.el6.noarch                                                                                                   7/32 
  Verifying  : libgcc-4.4.7-17.el6.i686                                                                                                            8/32 
  Verifying  : wget-1.12-8.el6.i686                                                                                                                9/32 
  Verifying  : autoconf-2.63-5.1.el6.noarch                                                                                                       10/32 
  Verifying  : libstdc++-4.4.7-17.el6.i686                                                                                                        11/32 
  Verifying  : libgomp-4.4.7-17.el6.i686                                                                                                          12/32 
  Verifying  : openssl-1.0.1e-48.el6_8.4.i686                                                                                                     13/32 
  Verifying  : cpp-4.4.7-17.el6.i686                                                                                                              14/32 
  Verifying  : ncurses-base-5.7-4.20090207.el6.i686                                                                                               15/32 
  Verifying  : gcc-c++-4.4.7-17.el6.i686                                                                                                          16/32 
  Verifying  : 1:make-3.81-23.el6.i686                                                                                                            17/32 
  Verifying  : ncurses-libs-5.7-4.20090207.el6.i686                                                                                               18/32 
  Verifying  : libcurl-7.19.7-52.el6.i686                                                                                                         19/32 
  Verifying  : gcc-4.4.7-17.el6.i686                                                                                                              20/32 
  Verifying  : 1:make-3.81-20.el6.i686                                                                                                            21/32 
  Verifying  : libgcc-4.4.7-3.el6.i686                                                                                                            22/32 
  Verifying  : openssl-1.0.0-27.el6.i686                                                                                                          23/32 
  Verifying  : ncurses-libs-MySQL5.7源码安装问题汇总

cmake编译安装mysql5.5

centos7源码安装mysql时cmake报错

mysql的安装配置

源码安装mysql依赖cmake

cmake源码包安装后的卸载问题