Skip to content

Instantly share code, notes, and snippets.

@betapcode
Created June 22, 2017 16:42
Show Gist options
  • Select an option

  • Save betapcode/1d032d2f83c0caa00078975a1606f181 to your computer and use it in GitHub Desktop.

Select an option

Save betapcode/1d032d2f83c0caa00078975a1606f181 to your computer and use it in GitHub Desktop.
upgrade gcc in centos 6
#!/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