Redhat 6.8How to upgrade the default cmake 2.8to cmake 3.9
This article mainly introduces redhat 6.8 how to upgrade the default cmake 2.8to cmake 3.9, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to know about it.
Cmake 3.9 installation Media https://cmake.org/files/ upload cmake 3.9 installation Media
[root@mysql8018] # mkdir-p cmake_new_ dirt [root @ mysql8018 cmake_new_dir] # total amount of ll 7524 RW / r / r 1 root root 7703777 December 2 13:57 cmake-3.9.2.tar.gz extract cmake 3.9 installation media [root@mysql8018 cmake_new_dir] # tar-zxvf cmake-3.9.2.tar.gz get cmake 3.9 installation instructions [root@mysql8018 cmake-3.9.2] # more README.rst UNIX/Mac OSX/MinGW/MSYS/ Cygwin ^ you need to have a compiler and a make installed.Run the ``bootstrap`` script you find in the source directory of CMake.You can use The ``--help``option to see the supported options.You may use the``-- prefix= ``option to specify a custominstallation directory for CMake. You can run the ``bootstrap`` script fromwithin the CMake source directory or any other build directory of yourchoice. Once this has finished successfully, run ``make``and``make install``. In summary:: $. / bootstrap & & make & & make install executes cmake 3.9 bootstrap
[root@mysql8018 cmake_new_dir] # ll total dosage 7528drwxr-xr-x. 11 root root 4096 December 2 13:58 cmake-3.9.2-rw-r--r--. 1 root root 7703777 December 2 13:57 cmake-3.9.2.tar.gz [root@mysql8018 cmake_new_dir] # cd cmake-3.9.2 [root@mysql8018 cmake-3.9.2] # ll total dosage 284drwxr-xr-x. 4502 games 4096 September 8 2017 Auxiliary-rwxr-xr-x. 1 502 games 48336 September 8 2017 bootstrap-rw-r--r--. 1 502 games 9706 September 8 2017 CMakeCPack.cmake-rw-r--r--. 1 502 games 12897 September 8 2017 CMakeCPackOptions.cmake.in-rw-r--r--. 1 502 games 153 September 8 2017 CMakeGraphVizOptions.cmake-rw-r--r--. 1 502 games 31721 September 8 2017 CMakeLists.txt-rw-r--r--. 1 502 games 4481 September 8 2017 CMakeLogo.gif-rw-r--r--. 1 502 games 790 Sep 8 2017 cmake_uninstall.cmake.in-rw-r--r--. 1 502 games 3322 September 8 2017 CompileFlags.cmake-rwxr-xr-x. 1 502 games 99 September 8 2017 configure-rw-r--r--. 1 502 games 1851 September 8 2017 CONTRIBUTING.rst-rw-r--r--. 1 502 games 5018 September 8 2017 Copyright.txt-rw-r--r--. 1 502 games 440 September 8 2017 CTestConfig.cmake-rw-r--r--. 1 502 games 6213 September 8 2017 CTestCustom.cmake.in-rw-r--r--. 1 502 games 374Sep 8 2017 DartConfig.cmake-rw-r--r--. 1 502 games 28046 September 8 2017 doxygen.configdrwxr-xr-x. 18502 games 4096 September 8 2017 Helpdrwxr-xr-x. 2502 games 4096 September 8 2017 Licensesdrwxr-xr-x. 12502 games 20480 September 8 2017 Modulesdrwxr-xr-x. 3 502 games 4096 September 8 2017 Packaging-rw-r--r--. 1 502 games 3016 September 8 2017 README.rstdrwxr-xr-x. 11 502 games 36864 September 8 2017 Sourcedrwxr-xr-x. 4502 games 4096 September 8 2017 Templatesdrwxr-xr-x. 240502 games 12288 September 8 2017 Testsdrwxr-xr-x. 21 502 games 4096 September 8 2017 Utilities [root@mysql8018 cmake-3.9.2] #. / bootstrap-- prefix=/usr slightly-- Performing Test run_inlines_hidden_test-- Performing Test run_inlines_hidden_test- Success-- Configuring done-- Generating done-- Build files have been written to: / root/cmake_new_dir/cmake-3.9.2-- -CMake has bootstrapped. Now run gmake. [root@mysql8018 cmake-3.9.2] # execute make [root@mysql8018 cmake-3.9.2] # make slightly [100%] Linking C executable pseudo_tidy [100%] Built target pseudo_tidyScanning dependencies of target foo [100%] Building CXX object Tests/FindPackageModeMakefileTest/CMakeFiles/foo.dir/foo.cpp.o [100%] Linking CXX static library libfoo.a [100%] Built target foo [root@mysql8018 cmake-3.9.2] # execute make install [root@mysql8018 cmake -3.9.2] # make install slightly-- Installing: / usr/share/cmake-3.9/editors/emacs/cmake-mode.el-- Installing: / usr/share/aclocal/cmake.m4-- Installing: / usr/share/cmake-3.9/completions/cmake-- Installing: / usr/share/cmake-3.9/completions/cpack-- Installing: / usr/share/cmake-3.9/completions/ctest Verification cmake 3.9 [root@mysql8018 cmake- 3.9.2] # cmake-versioncmake version 3.9.2CMake suite maintained and supported by Kitware (kitware.com/cmake). Thank you for reading this article carefully. I hope the article "redhat 6.8 how to upgrade the default cmake 2.8to cmake 3.9" shared by the editor will be helpful to you. At the same time, I hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!