Linux) GLIBCXX_3.4.26 not found 에러 해결하기(100%는 아님)

2022. 3. 19. 17:23꿀팁 분석 환경 설정/Linux 관련 팁

728x90

안된다는 분이 있으셔서, 참고만 하시면 좋을 것 같습니다. - 22.09.30


파이썬 코드를 실행하였는데, 에러가 났고, 이 문제를 해결하는 코드는 다음과 같다.

listdc++.so.6 파일에서 GLIBCX 찾기

strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCX

설치 방법(Solution)

sudo add-apt-repository ppa:ubuntu-toolchain-r/test

sudo apt-get update

sudo apt-get install gcc-4.9 ## 설치가 안되고 진행해도 가능

sudo apt-get upgrade libstdc++6

After this is complete, make sure to run the following:
## 아래 코드는 안해도 작동함
sudo apt-get dist-upgrade

Reference

https://www.codegrepper.com/code-examples/whatever/version+%60GLIBCXX_3.4.26%27+not+found

728x90