운영체제/리눅스
[리눅스] /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found 에러
Cloud_Park
2023. 2. 15. 16:47
바이너리 파일 설치하기의 에러가 발생한다.
mariadb 설치 시 나는 발생
/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by )
/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by )
/usr/lib64/libstdc++.so.6: version `CXXABI_1.3.5' not found (required by )
/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by )
/lib64/libc.so.6: version `GLIBC_2.16' not found (required by )
/lib64/libc.so.6: version `GLIBC_2.17' not found (required by )
/lib64/libc.so.6: version `GLIBC_2.14' not found (required by )
해결 방법:
GCC도 같이 업그레이드
GCC 설치
아래 주소에서 gcc 버전 다운로드가 가능하다
http://ftp.tsukuba.wide.ad.jp/software/gcc/releases/
-> 해당 사이트에서 링크 복사해 wget으로 다운로드
tar -zxvf gcc-8.3.0.tar.gz
cd gcc-8.3.0/
./contrib/download_prerequisites
mkdir build
cd build
../configure --enable-checking=release --enable-languages=c,c++ --disable-multilib
make && make install
* make 와 make install 2시간 소요 * ./contrib/download_prerequisites 로 필요한 패키지가 설치되어 있는 지 확인
cp /usr/local/lib64/libstdc++.so.6.0.25/usr/lib64
cd /usr/lib64
ln -snf libstdc++.so.6.0.25 libstdc++.so.6
GCC 확인
GCC 버전 확인
# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/8.3.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../configure --enable-checking=release --enable-language=c,c++ --disable-multilib
Thread model: posix
gcc version 8.3.0 (GCC)
현재 GLIBC 라이브러리 버전 확인
# strings /usr/lib64/libstdc++.so.6 | grep GLIBC
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.20
GLIBCXX_3.4.21
GLIBCXX_3.4.22
GLIBCXX_3.4.23
GLIBCXX_3.4.24
GLIBCXX_3.4.25
GLIBC_2.2.5
GLIBC_2.3
GLIBC_2.14
GLIBC_2.16
GLIBC_2.17
GLIBC_2.3.2
GLIBCXX_FORCE_NEW
GLIBCXX_DEBUG_MESSAGE_LENGTH