올해는 머신러닝이다.
우분투 gcc 설치 순서..그대로만 하세요~ 본문
These commands are based on a askubuntu answer http://askubuntu.com/a/581497
To install gcc-6 (gcc-6.1.1), I had to do more stuff as shown below.
USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING.
ABSOLUTELY NO WARRANTY.
If you are still reading let's carry on with the code.
sudo apt-get update && \
sudo apt-get install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
sudo apt-get update && \
sudo apt-get install gcc-snapshot -y && \
sudo apt-get update && \
sudo apt-get install gcc-6 g++-6 -y && \
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6 && \
sudo apt-get install gcc-4.8 g++-4.8 -y && \
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8;
When completed, you must change to the gcc you want to work with by default. Type in your terminal:
sudo update-alternatives --config gcc
To verify if it worked. Just type in your terminal
gcc -v
If everything went fine you should see gcc 6.1.1 by the time I am writing this gist
Happy coding!
See my blog post at https://www.application2000.com
'웹 관련 팁 모음' 카테고리의 다른 글
mac maria db 설치하는 법[펌] (0) | 2017.10.23 |
---|---|
vsftpd.conf 설정 설명 (0) | 2017.08.08 |
centos 서버 구입시 기본 세팅... (0) | 2017.07.28 |
이클립스에 UML Generator 를 붙여보자 ) - objectaid (0) | 2014.11.28 |
[펌] 티스토리에서 코드 예쁘게 넣기, syntaxhighlighter 설치/적용/사용법 (0) | 2014.11.28 |