
{"id":1455,"date":"2013-08-26T12:49:32","date_gmt":"2013-08-26T12:49:32","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=1455"},"modified":"2013-08-26T12:51:20","modified_gmt":"2013-08-26T12:51:20","slug":"install-gcc-4-8-via-ppa-in-ubuntu-12-04-13-04","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2013\/08\/install-gcc-4-8-via-ppa-in-ubuntu-12-04-13-04\/","title":{"rendered":"How to Install GCC 4.8 via PPA in Ubuntu 12.04, 13.04, 10.04"},"content":{"rendered":"<p>Want GCC 4.8 with c++11 complete feature? Well here&#8217;s how to install it in Ubuntu 12.04, Ubuntu 13.04, Ubuntu 12.10 via the PPA.<\/p>\n<p>The PPA provides both GCC 4.7.3 and GCC 4.8.1 for Ubuntu users. In this tutorial, you can follow below steps to upgrade gcc version in your system. <\/p>\n<p>1.) Press <b>Ctrl+Alt+T<\/b> on your keyboard to open terminal. When it opens, run below commands to add the ppa:<\/p>\n<pre>sudo add-apt-repository ppa:ubuntu-toolchain-r\/test<\/pre>\n<p>2.) Then install gcc 4.8 and g++ 4.8:<\/p>\n<pre>sudo apt-get update; sudo apt-get install gcc-4.8 g++-4.8<\/pre>\n<p>3.) Once installed, run following commands one by one to use gcc 4.8 instead of previous version.<\/p>\n<pre>sudo update-alternatives --remove-all gcc \n\nsudo update-alternatives --remove-all g++\n\nsudo update-alternatives --install \/usr\/bin\/gcc gcc \/usr\/bin\/gcc-4.8 20\n\nsudo update-alternatives --install \/usr\/bin\/g++ g++ \/usr\/bin\/g++-4.8 20\n\nsudo update-alternatives --config gcc\n\nsudo update-alternatives --config g++<\/pre>\n<p>Now you have the <b>gcc 4.8 with c++11 complete feature<\/b> in your system. Check out by:<\/p>\n<pre>gcc --version<\/pre>\n<blockquote><p>gcc (Ubuntu 4.8.1-2ubuntu1~13.04) 4.8.1<br \/>\nCopyright (C) 2013 Free Software Foundation, Inc.<br \/>\nThis is free software; see the source for copying conditions.  There is NO<br \/>\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Want GCC 4.8 with c++11 complete feature? Well here&#8217;s how to install it in Ubuntu 12.04, Ubuntu 13.04, Ubuntu 12.10 via the PPA. The PPA provides both GCC 4.7.3 and GCC 4.8.1 for Ubuntu users. In this tutorial, you can follow below steps to upgrade gcc version in your system. 1.) Press Ctrl+Alt+T on your [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[531,533,153,17,15],"class_list":["post-1455","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-gcc-4-8","tag-gcc-4-8-with-c11-complete-feature","tag-ubuntu","tag-ubuntu-12-04","tag-ubuntu-13-04"],"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/1455","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=1455"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/1455\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=1455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=1455"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=1455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}