

{"id":125,"date":"2022-05-11T16:36:56","date_gmt":"2022-05-11T23:36:56","guid":{"rendered":"https:\/\/peden.ece.uw.edu\/computing\/?page_id=125"},"modified":"2024-09-07T22:19:18","modified_gmt":"2024-09-08T05:19:18","slug":"custom-configuration-gcc","status":"publish","type":"page","link":"https:\/\/peden.ece.uw.edu\/computing\/linux-lab\/custom-configuration-gcc\/","title":{"rendered":"Custom Configuration &#8211; Modern gcc"},"content":{"rendered":"<p><strong>The ECE Linux Lab machines run AlmaLinux 8, which provides gcc version 8.5 by default. However some software may require a more up-to-date compiler than that distro provides.<\/strong><\/p>\n<p>We have installed the application streams for gcc 11 (gcc-toolset-11) and gcc 13 (gcc-toolset-13).<\/p>\n<p>To use either of these versions, you must run\u00a0 your shell under the desired software stream as shown below (what you type is in <strong>bold<\/strong>):<\/p>\n<blockquote>\n<pre><code>$ <b>which gcc<\/b>\r\n\/usr\/bin\/gcc\r\n$ <strong>gcc --version<\/strong>\r\ngcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-22)\r\n...\r\n\r\n$ <b>scl enable gcc-toolset-11 \"$SHELL\"<\/b>\r\n$ <b>which gcc<\/b>\r\n\/opt\/rh\/gcc-toolset-11\/root\/usr\/bin\/gcc\r\n$ <b>gcc --version<\/b>\r\ngcc (GCC) 11.2.1 20220127 (Red Hat 11.2.1-9)\r\n...\r\n\r\n$<\/code><\/pre>\n<\/blockquote>\n<p>And then compile (and possibly use) the software under that shell.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The ECE Linux Lab machines run AlmaLinux 8, which provides gcc version 8.5 by default. However some software may require a more up-to-date compiler than that distro provides. We have installed the application streams for gcc 11 (gcc-toolset-11) and gcc 13 (gcc-toolset-13). To use either of these versions, you must run\u00a0 your shell under the&#8230;<\/p>\n<div><a class=\"more\" href=\"https:\/\/peden.ece.uw.edu\/computing\/linux-lab\/custom-configuration-gcc\/\">Read more<\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"parent":111,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"tags":[16],"class_list":["post-125","page","type-page","status-publish","hentry","tag-linux"],"_links":{"self":[{"href":"https:\/\/peden.ece.uw.edu\/computing\/wp-json\/wp\/v2\/pages\/125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/peden.ece.uw.edu\/computing\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/peden.ece.uw.edu\/computing\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/peden.ece.uw.edu\/computing\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/peden.ece.uw.edu\/computing\/wp-json\/wp\/v2\/comments?post=125"}],"version-history":[{"count":9,"href":"https:\/\/peden.ece.uw.edu\/computing\/wp-json\/wp\/v2\/pages\/125\/revisions"}],"predecessor-version":[{"id":552,"href":"https:\/\/peden.ece.uw.edu\/computing\/wp-json\/wp\/v2\/pages\/125\/revisions\/552"}],"up":[{"embeddable":true,"href":"https:\/\/peden.ece.uw.edu\/computing\/wp-json\/wp\/v2\/pages\/111"}],"wp:attachment":[{"href":"https:\/\/peden.ece.uw.edu\/computing\/wp-json\/wp\/v2\/media?parent=125"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peden.ece.uw.edu\/computing\/wp-json\/wp\/v2\/tags?post=125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}