久久精品人人爽,华人av在线,亚洲性视频网站,欧美专区一二三

redhat 6.8如何升級默認cmake 2.8到cmake 3.9

146次閱讀
沒有評論

共計 3851 個字符,預計需要花費 10 分鐘才能閱讀完成。

這篇文章主要介紹了 redhat 6.8 如何升級默認 cmake 2.8 到 cmake 3.9,具有一定借鑒價值,感興趣的朋友可以參考下,希望大家閱讀完這篇文章之后大有收獲,下面讓丸趣 TV 小編帶著大家一起了解一下。

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= install_prefix `` option to specify a custom
installation directory for CMake. You can run the ``bootstrap`` script from
within the CMake source directory or any other build directory of your
choice. 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
總用量  7528
drwxr-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
總用量  284
drwxr-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.config
drwxr-xr-x. 18 502 games 4096 9 月  8 2017 Help
drwxr-xr-x. 2 502 games 4096 9 月  8 2017 Licenses
drwxr-xr-x. 12 502 games 20480 9 月  8 2017 Modules
drwxr-xr-x. 3 502 games 4096 9 月  8 2017 Packaging
-rw-r--r--. 1 502 games 3016 9 月  8 2017 README.rst
drwxr-xr-x. 11 502 games 36864 9 月  8 2017 Source
drwxr-xr-x. 4 502 games 4096 9 月  8 2017 Templates
drwxr-xr-x. 240 502 games 12288 9 月  8 2017 Tests
drwxr-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_tidy
Scanning 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 -version
cmake version 3.9.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).

感謝你能夠認真閱讀完這篇文章,希望丸趣 TV 小編分享的“redhat 6.8 如何升級默認 cmake 2.8 到 cmake 3.9”這篇文章對大家有幫助,同時也希望大家多多支持丸趣 TV,關注丸趣 TV 行業資訊頻道,更多相關知識等著你來學習!

正文完
 
丸趣
版權聲明:本站原創文章,由 丸趣 2023-07-27發表,共計3851字。
轉載說明:除特殊說明外本站除技術相關以外文章皆由網絡搜集發布,轉載請注明出處。
評論(沒有評論)
主站蜘蛛池模板: 沙湾县| 双江| 岳西县| 鄂伦春自治旗| 大同市| 柳江县| 黄陵县| 彩票| 安岳县| 古交市| 磐安县| 安化县| 木里| 依安县| 漾濞| 兴山县| 准格尔旗| 化德县| 军事| 河东区| 寿宁县| 松原市| 固镇县| 白朗县| 哈尔滨市| 衡南县| 贡觉县| 辽阳市| 临朐县| 红桥区| 沾化县| 阜平县| 拉萨市| 贵德县| 平乐县| 峨眉山市| 包头市| 富源县| 七台河市| 元氏县| 西华县|