Skip to content

Instantly share code, notes, and snippets.

@yn-misaki
Last active May 28, 2016 02:44
Show Gist options
  • Save yn-misaki/f82a9e77946cdd853f334606df6adca4 to your computer and use it in GitHub Desktop.
Save yn-misaki/f82a9e77946cdd853f334606df6adca4 to your computer and use it in GitHub Desktop.
CentOS7へGCC4.9.3をインストール ref: http://qiita.com/yn-misaki/items/601e260bec0b6eaaa74e
$ cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
$ yum list installed | grep gcc
$ sudo yum remove gcc libgcc
$ sudo yum install -y libmpc-devel mpfr-devel gmp-devel
$ cd /tmp
$ curl -O ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.9.3/gcc-4.9.3.tar.bz2
$ tar xvfj gcc-4.9.3.tar.bz2
$ cd gcc-4.9.3
$ make -j 4
$ sudo make install
$ gcc --version
gcc (GCC) 4.9.3
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment