14
15

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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
15
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
15

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?