redhat 6.8如何升级默认cmake 2.8到cmake 3.9
发表于:2025-02-23 作者:千家信息网编辑
千家信息网最后更新 2025年02月23日,这篇文章主要介绍了redhat 6.8如何升级默认cmake 2.8到cmake 3.9,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。
千家信息网最后更新 2025年02月23日redhat 6.8如何升级默认cmake 2.8到cmake 3.9上传 cmake 3.9安装介质
执行cmake 3.9 bootstrap
这篇文章主要介绍了redhat 6.8如何升级默认cmake 2.8到cmake 3.9,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。
cmake 3.9安装介质
https://cmake.org/files/
上传 cmake 3.9安装介质
[root@mysql8018 ~]# mkdir -p cmake_new_dir[root@mysql8018 cmake_new_dir]# ll总用量 7524-rw-r--r--. 1 root root 7703777 12月 2 13:57 cmake-3.9.2.tar.gz
解压cmake 3.9安装介质
[root@mysql8018 cmake_new_dir]# tar -zxvf cmake-3.9.2.tar.gz
获取cmake 3.9安装指令
[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
执行cmake 3.9 bootstrap
[root@mysql8018 cmake_new_dir]# ll总用量 7528drwxr-xr-x. 11 root root 4096 12月 2 13:58 cmake-3.9.2-rw-r--r--. 1 root root 7703777 12月 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总用量 284drwxr-xr-x. 4 502 games 4096 9月 8 2017 Auxiliary-rwxr-xr-x. 1 502 games 48336 9月 8 2017 bootstrap-rw-r--r--. 1 502 games 9706 9月 8 2017 CMakeCPack.cmake-rw-r--r--. 1 502 games 12897 9月 8 2017 CMakeCPackOptions.cmake.in-rw-r--r--. 1 502 games 153 9月 8 2017 CMakeGraphVizOptions.cmake-rw-r--r--. 1 502 games 31721 9月 8 2017 CMakeLists.txt-rw-r--r--. 1 502 games 4481 9月 8 2017 CMakeLogo.gif-rw-r--r--. 1 502 games 790 9月 8 2017 cmake_uninstall.cmake.in-rw-r--r--. 1 502 games 3322 9月 8 2017 CompileFlags.cmake-rwxr-xr-x. 1 502 games 99 9月 8 2017 configure-rw-r--r--. 1 502 games 1851 9月 8 2017 CONTRIBUTING.rst-rw-r--r--. 1 502 games 5018 9月 8 2017 Copyright.txt-rw-r--r--. 1 502 games 440 9月 8 2017 CTestConfig.cmake-rw-r--r--. 1 502 games 6213 9月 8 2017 CTestCustom.cmake.in-rw-r--r--. 1 502 games 374 9月 8 2017 DartConfig.cmake-rw-r--r--. 1 502 games 28046 9月 8 2017 doxygen.configdrwxr-xr-x. 18 502 games 4096 9月 8 2017 Helpdrwxr-xr-x. 2 502 games 4096 9月 8 2017 Licensesdrwxr-xr-x. 12 502 games 20480 9月 8 2017 Modulesdrwxr-xr-x. 3 502 games 4096 9月 8 2017 Packaging-rw-r--r--. 1 502 games 3016 9月 8 2017 README.rstdrwxr-xr-x. 11 502 games 36864 9月 8 2017 Sourcedrwxr-xr-x. 4 502 games 4096 9月 8 2017 Templatesdrwxr-xr-x. 240 502 games 12288 9月 8 2017 Testsdrwxr-xr-x. 21 502 games 4096 9月 8 2017 Utilities[root@mysql8018 cmake-3.9.2]# ./bootstrap --prefix=/usr略-- 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]#
执行make
[root@mysql8018 cmake-3.9.2]# make略[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]#
执行make install
[root@mysql8018 cmake-3.9.2]# make install略-- 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
验证cmake 3.9
[root@mysql8018 cmake-3.9.2]# cmake -versioncmake version 3.9.2CMake suite maintained and supported by Kitware (kitware.com/cmake).
感谢你能够认真阅读完这篇文章,希望小编分享的"redhat 6.8如何升级默认cmake 2.8到cmake 3.9"这篇文章对大家有帮助,同时也希望大家多多支持,关注行业资讯频道,更多相关知识等着你来学习!
篇文章
介质
用量
升级
价值
兴趣
同时
指令
更多
朋友
知识
编带
行业
资讯
资讯频道
频道
参考
学习
帮助
支持
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
北京路客互联网科技有限
花亦山心之月有哪些服务器
郑州国家网络安全观
宽带服务器连接失败怎么办
没读大学如何学软件开发
吃鸡换服务器
云服务器linux系统
地理国情监测数据库技术应用
工程索引数据库下载pdf
岳阳长信软件开发有限公司
小程序获取云数据库图片
腾讯云轻量应用服务器怎么联网
网络安全同花顺
软件开发项目开发经理职责
网络舆情和网络安全交流发言
怎么在数据库表中添加照片
应用服务器安全分析
诛仙琥珀朱绫服务器
abs网络安全计划
计算机网络技术的提纲
日照市汉风网络技术
2019网络安全宣传内容
2021网络安全平均薪资
pg数据库序列偶数增
数据库设计说明书非空键
北京鑫宏凯达网络技术有限公司
南京 票务软件开发公司
我的世界服务器小游戏地址
班级网络安全自查表
知道创宇软件开发工程师面试题