Ubuntu 14.04 更新gcc版本至4.9.2
参考:
Ubuntu 14.04 更新gcc版本至4.9.2
1.更新源,安装gcc v4.9.2
$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
$ sudo apt-get update
$ sudo apt-get install gcc-4.9
$ sudo apt-get install g++-4.9
2.修改ld链接(/usr/bin
):
$ cd /usr/bin
$ ln -s /usr/bin/g++-4.9 /usr/bin/g++ -f
$ ln -s /usr/bin/gcc-4.9 /usr/bin/gcc -f
2017.5.13
To improve is to change, to be perfect is to change often.