Created
June 22, 2017 16:42
-
-
Save betapcode/1d032d2f83c0caa00078975a1606f181 to your computer and use it in GitHub Desktop.
upgrade gcc in centos 6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # description: upgrade gcc-c++ from 4.4 to 4.8 on centos 6.5 | |
| # AUTHOR : betapcode, betapcode@gmail.com | |
| # COMPANY: Tamtay JSC | |
| # VERSION: 1.0 | |
| # CREATED: 04/05/2017 10:31:01 PM | |
| echo '==================================================' | |
| echo '=============== Upgrade gcc-c++ ===============' | |
| echo '==================================================' | |
| cd ~ | |
| wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo | |
| sudo yum install devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-gcc-c++ | |
| scl enable devtoolset-2 bash | |
| echo '==================================================' | |
| echo '===================== Done! =======================' | |
| echo '==================================================' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment