728x90

 

1. 패키지 저장소 업데이트 및 설치

apt-get update
apt-get install -y software-properties-common
add-apt-repository ppa:ubuntu-toolchain-r/test
apt-get update
apt-get install -y gcc-4.7 g++-4.7

 

 

2. GCC 4.7 기본값으로 설정

update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 50
update-alternatives --config gcc

 

 

 

 

728x90

+ Recent posts