c++11対応のg++をCentOSに入れてみた作業メモ。 yum installで取れるCentOSのデフォルトg++のバージョンは4.4.7(2013/10現在)。 % g++ --version g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3) なので、別のリポジトリからg++4.7.2を持ってきて、CentOSにインストールしてみた。 以下のコマンドで取得。 cd /etc/yum.repos.d wget https://people.centos.org/tru/devtools-1.1/devtools-1.1.repo yum --enablerepo=testing-1.1-devtools-6 install devtoolset-1.1-gcc devtoolset-1.1-gcc-c++ 以下のパス配下にインストールされます。 /