{"id":99,"date":"2022-06-30T10:37:57","date_gmt":"2022-06-30T05:07:57","guid":{"rendered":"https:\/\/varuna.aero.iitb.ac.in\/ace\/?p=99"},"modified":"2022-07-04T07:37:59","modified_gmt":"2022-07-04T02:07:59","slug":"set-your-preferable-gcc-version","status":"publish","type":"post","link":"https:\/\/varuna.aero.iitb.ac.in\/ace\/index.php\/2022\/06\/30\/set-your-preferable-gcc-version\/","title":{"rendered":"Set your preferable GCC version"},"content":{"rendered":"\n<p style=\"font-size:14.5px\">By default, GCC available in the system is 4.8. In case, your requirement is an updated version you can set it in your home bashrc as per the version you need.<\/p>\n\n\n\n<p style=\"font-size:14.5px\">We have devtoolset istalled on Cluster. Installed versions &#8211; devtoolset-7 to devtoolset-11<\/p>\n\n\n\n<p style=\"font-size:14.5px\">Let&#8217;s see how to set gcc version 7 in below example &#8211;<\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"font-size:15px\"><code>To activate gcc 7 you need to source devtoolset-7 with below command -\n\nsource \/opt\/rh\/devtoolset-7\/enable\n\nNow you can check the version -\n\ngcc -v<\/code><\/pre>\n\n\n\n<p style=\"font-size:14.5px\">To make the above version persistent for your account, you can add the above line in your bashrc &#8211;<\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"font-size:15px\"><code>vim ~\/.bashrc\n\n#Add this line is in the end and save\nsource \/opt\/rh\/devtoolset-7\/enable\n\nNow source your bashrc file\nsource ~\/.bashrc<\/code><\/pre>\n\n\n\n<p style=\"font-size:14.5px\">In a similar way, you can set gcc-9 and other available versions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default, GCC available in the system is 4.8. In case, your requirement is an updated version you can set it in your home bashrc as per the version you need. We have devtoolset istalled on Cluster. Installed versions &#8211; devtoolset-7 to devtoolset-11 Let&#8217;s see how to set gcc version 7 in below example &#8211; <a class=\"read-more\" href=\"https:\/\/varuna.aero.iitb.ac.in\/ace\/index.php\/2022\/06\/30\/set-your-preferable-gcc-version\/\">&hellip;&nbsp;<span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[1],"tags":[13],"class_list":["post-99","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-gcc"],"_links":{"self":[{"href":"https:\/\/varuna.aero.iitb.ac.in\/ace\/index.php\/wp-json\/wp\/v2\/posts\/99","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/varuna.aero.iitb.ac.in\/ace\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/varuna.aero.iitb.ac.in\/ace\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/varuna.aero.iitb.ac.in\/ace\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/varuna.aero.iitb.ac.in\/ace\/index.php\/wp-json\/wp\/v2\/comments?post=99"}],"version-history":[{"count":2,"href":"https:\/\/varuna.aero.iitb.ac.in\/ace\/index.php\/wp-json\/wp\/v2\/posts\/99\/revisions"}],"predecessor-version":[{"id":101,"href":"https:\/\/varuna.aero.iitb.ac.in\/ace\/index.php\/wp-json\/wp\/v2\/posts\/99\/revisions\/101"}],"wp:attachment":[{"href":"https:\/\/varuna.aero.iitb.ac.in\/ace\/index.php\/wp-json\/wp\/v2\/media?parent=99"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/varuna.aero.iitb.ac.in\/ace\/index.php\/wp-json\/wp\/v2\/categories?post=99"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/varuna.aero.iitb.ac.in\/ace\/index.php\/wp-json\/wp\/v2\/tags?post=99"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}