반응형
gcc compile
$ cd $HOME/tools
$ wget https://ftp.kaist.ac.kr/gnu/gcc/gcc-12.3.0/gcc-12.3.0.tar.gz
$ tar -xvf gcc-12.3.0.tar.gz
$ cd gcc-12.3.0
$ mkdir build
$ ./configure --prefix=$HOME/tools/gcc-12.3.0/build --disable-multilib --enable-languages=c,c++
$ make -j
$ make install
bashrc 수정
$ vim ~/.bashrc
export GCC12=$HOME/tools/gcc-12.3.0/build
export PATH=$GCC12/bin:$PATH
$ source ~/.bashrc
$ gcc -v
반응형
'개인 공부 > 리눅스' 카테고리의 다른 글
Centos 7, SPEC2017 설치 (0) | 2022.05.04 |
---|---|
Centos 7, SPEC2006 설치 - 2 (0) | 2022.01.13 |
Centos 7, /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found -2 (2) | 2022.01.11 |
Centos 7, /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (1) | 2021.05.27 |
Centos 7, gcc 버전 업데이트 (0) | 2021.03.16 |