{"id":4695,"date":"2019-05-23T11:19:47","date_gmt":"2019-05-23T05:49:47","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=4695"},"modified":"2019-05-23T16:09:39","modified_gmt":"2019-05-23T10:39:39","slug":"how-to-install-cmake-form-source-on-linux","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/how-to-install-cmake-form-source-on-linux\/","title":{"rendered":"How to Install Cmake form source on Linux."},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">How to Install Cmake on form source Linux.<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Date : 22\/05\/2019<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Introduction :<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to install cmake in system packages manager please follow this blog <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/pheonixsolutions.com\/blog\/how-to-install-cmake-on-linux\/\" target=\"_blank\">how-to-install-cmake-on-linux<\/a>  and also known about cmake option.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Prerequisite :<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Before install, to check the lastest version of the cmake <a href=\"https:\/\/cmake.org\/download\/\" target=\"_blank\" rel=\"noopener\">click here<\/a> and take copy of it.<\/li><li>Linux operating system.<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>To Uninstall cmake<\/strong>, use by following command, it will remove the cmake \u00a0package and other dependent packages.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get remove --auto-remove cmake<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Steps:<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1<\/strong>. Then to Install cmake form source 1st goto the directory to get install and paste the current version of cmake with the command wget.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/root\nwget https:\/\/github.com\/Kitware\/CMake\/releases\/download\/v3.14.4\/cmake-3.14.4.tar.gz<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"650\" height=\"556\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/05\/image-2.png\" alt=\"\" class=\"wp-image-4707\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/05\/image-2.png 650w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/05\/image-2-300x257.png 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2.<\/strong> After that extract the files of cmake by the following command and goto that directory.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tar -xzf cmake-3.14.4.tar.gz\ncd  cmake-3.14.4<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"637\" height=\"119\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/05\/image-3.png\" alt=\"\" class=\"wp-image-4708\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/05\/image-3.png 637w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/05\/image-3-300x56.png 300w\" sizes=\"(max-width: 637px) 100vw, 637px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3.<\/strong> Then just type the following line in that directory <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/configure<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"543\" height=\"195\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/05\/Screenshot-9.png\" alt=\"\" class=\"wp-image-4712\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/05\/Screenshot-9.png 543w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/05\/Screenshot-9-300x108.png 300w\" sizes=\"(max-width: 543px) 100vw, 543px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">It takes several minutes to complete it and you able to see this line &#8221; Now run make&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"459\" height=\"146\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/05\/image-5.png\" alt=\"\" class=\"wp-image-4716\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/05\/image-5.png 459w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/05\/image-5-300x95.png 300w\" sizes=\"(max-width: 459px) 100vw, 459px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>4.<\/strong> After that Run the <strong>make<\/strong> command, it too takes several minutes to complete.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>make<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>5.<\/strong> Once make command is completed then run the following command. To Install cmake.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>make install<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Finally  cmake option is installed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks for using&nbsp;<a href=\"https:\/\/pheonixsolutions.com\/\">pheonix solutions<\/a>.<br>You find this tutorial helpful? Share with your friends to keep it alive. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Install Cmake on form source Linux. Date : 22\/05\/2019 Introduction : If you want to install cmake in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[664],"class_list":["post-4695","post","type-post","status-publish","format-standard","hentry","category-web-architecture","tag-install-cmake-form-source","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-1dJ","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/4695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=4695"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/4695\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=4695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=4695"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=4695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}