Linux/Ubuntu
우분투에서 GCC 손쉽게 설치하기
누더기
2016. 5. 25. 17:31
GCC(GNU C Compiler)를 업그레이드 해야 하거나 특정 버전을 사용해야거나 등등의 일의 발생 할 경우
아래의 방법으로 후딱 설치하도록 하자
저장소 추가
$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
저장소 업데이트
$ sudo apt-get update
설치
$ sudo apt-get install gcc-6
gcc- 뒷 부분의 숫자를 변경하면 다른 버전 설치가 가능하다.
가능한 버전의 목록은 참고 사이트에서 확인 가능하다.
참고 사이트
https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test