한국어
Linux Programming
 

리눅스 컴파일러 최신으로 업데이트

linux 2018.12.26 16:29 조회 수 : 1879

리눅스 컴파일러 최신으로 업데이트

# Add the repository for gcc 7 and install

sudo add-apt-repository ppa:jonathonf/gcc-7.1
sudo apt-get update
sudo apt-get install gcc-7 g++-7

 

# Update system to use gcc/g++ 7 when calling raw commands

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 50
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 50