LoginSignup
20
19

More than 5 years have passed since last update.

CentOS6.5にdevtoolset-2を使ってgcc4.8をインストールする

Last updated at Posted at 2014-07-09

devtoolsetを提供してるところはいくつかあるんだけど、people.centos.orgのがいちばんcentos用として適切っぽい感じがする。

wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo
yum install devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-gcc-c++

devtoolsetでインストールしたパッケージはそのままでは変なところにインストールされていて、使えない。有効化したいときは

scl enable devtoolset-2 bash

などとして使う。

20
19
0

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
20
19