#!/bin/sh
# @function - install gcc 4.8.x
function InstallGCC48x()
{
    ShowResult "[green]正在安装GCC 4.8.x ... [/green]" 1
    
    # remove old gcc, gcc-c++
    eval yum remove gcc gcc-c++ -y ${_SYS_SHOW_INSTALL_DETAILS_}
    
    cd /usr/local/
    tar zxvf ${_PATH_SOFTWARE_}/gcc-*-complied.tar.gz
    cd /usr/bin
    ln -s -f /usr/local/gcc/bin/gcc gcc
    ln -s -f /usr/local/gcc/bin/g++ g++
    ln -s -f /usr/local/gcc/bin/gcc cc
    
    cd /usr/lib64
    rm -rf libstdc++.so.6
    rm -f /usr/local/gcc/lib64/libstdc++.so.6.0.18-gdb.py
    eval ln -s -f /usr/local/gcc/lib64/* /usr/lib64/ ${_SYS_SHOW_INSTALL_DETAILS_}
    ldconfig
    
    ShowStatus $?
}