[linux] g++, gcc 버전 설정

blutter를 사용할 때 gcc, g++ 버전을 맞춰야함 라이브러리땜에

https://developernote.com/2023/08/installing-gcc13-on-ubuntu-22-04/

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install gcc-13 g++-13
ll /usr/bin/gcc-13
ll /usr/bin/g++-13
update-alternatives –display gcc
ll /etc/alternatives/g*
sudo update-alternatives –remove-all gcc
sudo update-alternatives –remove-all g++
sudo update-alternatives –install /usr/bin/gcc gcc /usr/bin/gcc-13 10 –slave /usr/bin/g++ g++ /usr/bin/g++-13
g++ –version
gcc –version

https://blog.naver.com/tinz6461/222181958151

Comments

ESC
Type to search...