{"id":96,"date":"2017-06-23T11:40:22","date_gmt":"2017-06-23T03:40:22","guid":{"rendered":"http:\/\/49.232.131.197\/?p=96"},"modified":"2017-07-18T15:00:18","modified_gmt":"2017-07-18T07:00:18","slug":"install-ggcc-4-8-2-in-centos-6-6","status":"publish","type":"post","link":"http:\/\/www.sourcecool.com\/index.php\/2017\/06\/23\/install-ggcc-4-8-2-in-centos-6-6\/","title":{"rendered":"Install g++\/gcc 4.8.2 in CentOS 6.6"},"content":{"rendered":"<div data-lang=\"text\">\n<pre class=\"lang:sh decode:true \">$ wget http:\/\/people.centos.org\/tru\/devtools-2\/devtools-2.repo -O \/etc\/yum.repos.d\/devtools-2.repo\r\n$ yum install devtoolset-2-gcc devtoolset-2-binutils\r\n$ yum install devtoolset-2-gcc-c++ devtoolset-2-gcc-gfortran<\/pre>\n<p>&nbsp;<\/p>\n<\/div>\n<p>\/opt\/rh\/devtoolset-2\/root\/usr\/bin\/ \u306b\u5165\u308b<\/p>\n<div data-lang=\"text\">\n<div>$ \/opt\/rh\/devtoolset-2\/root\/usr\/bin\/gcc &#8211;versiongcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15)Copyright (C) 2013 Free Software Foundation, Inc.This is free software; see the source for copying conditions. There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<\/div>\n<\/div>\n<div data-lang=\"text\">\n<div>scl enable devtoolset-2 bash<\/div>\n<\/div>\n<p>\u3092\u5b9f\u884c\u3059\u308b\u3068\u74b0\u5883\u5909\u6570\u304c\u30bb\u30c3\u30c8\u3055\u308c\u3001g++\u3084\u308b\u30684.8.2\u3068\u306a\u308b\u3002<br \/>\nshell\u3092\u518d\u8d77\u52d5\u3059\u308b\u3068\u3082\u3068\u306b\u3082\u3069\u308b\u306e\u3067\u3001\u4e0b\u8a18\u3092<code>~\/.bashrc<\/code>\u3082\u3057\u304f\u306f<code>~\/.bash_profiles<\/code>\u306b\u8a18\u8f09\u3059\u308b<\/p>\n<div data-lang=\"text\">\n<div>source \/opt\/rh\/devtoolset-2\/enable<\/div>\n<\/div>\n<p>ref:<br \/>\n<a href=\"http:\/\/unix.stackexchange.com\/questions\/175851\/how-to-permanently-enable-scl-centos-6-4\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/unix.stackexchange.com\/questions\/175851\/how-to-permanently-enable-scl-centos-6-4<\/a><br \/>\n<a href=\"http:\/\/superuser.com\/questions\/381160\/how-to-install-gcc-4-7-x-4-8-x-on-centos\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/superuser.com\/questions\/381160\/how-to-install-gcc-4-7-x-4-8-x-on-centos<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>$ wget http:\/\/p&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7,10],"tags":[],"_links":{"self":[{"href":"http:\/\/www.sourcecool.com\/index.php\/wp-json\/wp\/v2\/posts\/96"}],"collection":[{"href":"http:\/\/www.sourcecool.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.sourcecool.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.sourcecool.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.sourcecool.com\/index.php\/wp-json\/wp\/v2\/comments?post=96"}],"version-history":[{"count":2,"href":"http:\/\/www.sourcecool.com\/index.php\/wp-json\/wp\/v2\/posts\/96\/revisions"}],"predecessor-version":[{"id":171,"href":"http:\/\/www.sourcecool.com\/index.php\/wp-json\/wp\/v2\/posts\/96\/revisions\/171"}],"wp:attachment":[{"href":"http:\/\/www.sourcecool.com\/index.php\/wp-json\/wp\/v2\/media?parent=96"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.sourcecool.com\/index.php\/wp-json\/wp\/v2\/categories?post=96"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.sourcecool.com\/index.php\/wp-json\/wp\/v2\/tags?post=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}