LoginSignup
14
14

More than 5 years have passed since last update.

CentOS 6 で C++11 に対応した g++ を使う

Last updated at Posted at 2016-01-19

npm install したら、C++11 に対応している C++ コンパイラーでないとコンパイルが通らないモジュールがあったので、Software Collection から新しめの g++ をインストールする。

$ sudo yum install centos-release-scl && \
  sudo yum install devtoolset-3-gcc-c++ && \
  scl enable devtoolset-3 bash

whichg++ の場所を確認してみると、/usr/bin/g++ ではなく、/opt/... 以下にあることが確認できる。

$ which g++
/opt/rh/devtoolset-3/root/usr/bin/g++

参考: CentOS Announce ML へのポストより

14
14
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
14