반응형

Issue!!

$ ./gm

./gm: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ./gm)


Solution!!

1. Fedora or Ubuntu 최신버젼이 설치 된 OS에서 프로그램 실행!!

2. glibc 업그레이드(백업 후 진행!!)

$ rpm -qa | grep glibc

glibc-common-2.12-1.107.el6.x86_64

glibc-headers-2.12-1.107.el6.x86_64

glibc-2.12-1.107.el6.i686

glibc-devel-2.12-1.107.el6.x86_64

glibc-2.12-1.107.el6.x86_64


# rpm -q --provides glibc | grep libc.so.6 | grep 64bit

libc.so.6()(64bit)  

libc.so.6(GLIBC_2.10)(64bit)  

libc.so.6(GLIBC_2.11)(64bit)  

libc.so.6(GLIBC_2.12)(64bit)  

libc.so.6(GLIBC_2.2.5)(64bit)  

libc.so.6(GLIBC_2.2.6)(64bit)  

libc.so.6(GLIBC_2.3)(64bit)  

libc.so.6(GLIBC_2.3.2)(64bit)  

libc.so.6(GLIBC_2.3.3)(64bit)  

libc.so.6(GLIBC_2.3.4)(64bit)  

libc.so.6(GLIBC_2.4)(64bit)  

libc.so.6(GLIBC_2.5)(64bit)  

libc.so.6(GLIBC_2.6)(64bit)  

libc.so.6(GLIBC_2.7)(64bit)  

libc.so.6(GLIBC_2.8)(64bit)  

libc.so.6(GLIBC_2.9)(64bit)  


### 해당 패키지에 대해 검색

# repoquery --whatprovides --enablerepo=epel 'libc.so.6(GLIBC_2.14)(64bit)'  

 

### 6.4버젼, EPEL에서도 2.12이상 지원되지 않으므로 Fedora의 glibc-2.14~~.rpm을 다운로드 하여 설치

# wget ftp://mirror.switch.ch/pool/2/mirror/fedora/linux/releases/16/Fedora/x86_64/os/Packages/glibc-2.14.90-14.x86_64.rpm
# wget ftp://mirror.switch.ch/pool/2/mirror/fedora/linux/releases/16/Fedora/x86_64/os/Packages/glibc-common-2.14.90-14.x86_64.rpm
# wget ftp://mirror.switch.ch/pool/2/mirror/fedora/linux/releases/16/Fedora/x86_64/os/Packages/glibc-headers-2.14.90-14.x86_64.rpm
# wget ftp://mirror.switch.ch/pool/2/mirror/fedora/linux/releases/16/Fedora/x86_64/os/Packages/glibc-devel-2.14.90-14.x86_64.rpm
# rpm -Uvh glibc-2.14.90-14.x86_64.rpm glibc-common-2.14.90-14.x86_64.rpm glibc-devel-2.14.90-14.x86_64.rpm glibc-headers-2.14.90-14.x86_64.rpm
# rpm -q --provides glibc | grep libc.so.6

libc.so.6()(64bit) 
libc.so.6(GLIBC_2.10)(64bit) 
libc.so.6(GLIBC_2.11)(64bit) 
libc.so.6(GLIBC_2.12)(64bit) 
libc.so.6(GLIBC_2.13)(64bit) 
libc.so.6(GLIBC_2.14)(64bit) 
libc.so.6(GLIBC_2.15)(64bit) 

libc.so.6(GLIBC_2.2.5)(64bit) 
libc.so.6(GLIBC_2.2.6)(64bit) 
libc.so.6(GLIBC_2.3)(64bit) 
libc.so.6(GLIBC_2.3.2)(64bit) 
libc.so.6(GLIBC_2.3.3)(64bit) 
libc.so.6(GLIBC_2.3.4)(64bit) 
libc.so.6(GLIBC_2.4)(64bit) 
libc.so.6(GLIBC_2.5)(64bit) 
libc.so.6(GLIBC_2.6)(64bit) 
libc.so.6(GLIBC_2.7)(64bit) 
libc.so.6(GLIBC_2.8)(64bit) 
libc.so.6(GLIBC_2.9)(64bit)

 

 


 

Issue!!

isbyeon $ ldd pindel_x86_64 
./pindel_x86_64: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by ./pindel_x86_64)
    libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003f2f400000)


Solution!!

isbyeon $ rpm -q --provides libstdc++
libstdc++ = 4.1.1-52.el5
libstdc++.so.6()(64bit)  
libstdc++.so.6(CXXABI_1.3)(64bit)  
libstdc++.so.6(CXXABI_1.3.1)(64bit)  
libstdc++.so.6(GLIBCXX_3.4)(64bit)  
libstdc++.so.6(GLIBCXX_3.4.1)(64bit)  
libstdc++.so.6(GLIBCXX_3.4.2)(64bit)  
libstdc++.so.6(GLIBCXX_3.4.3)(64bit)  
libstdc++.so.6(GLIBCXX_3.4.4)(64bit)  
libstdc++.so.6(GLIBCXX_3.4.5)(64bit)  
libstdc++.so.6(GLIBCXX_3.4.6)(64bit)  
libstdc++.so.6(GLIBCXX_3.4.7)(64bit)  
libstdc++.so.6(GLIBCXX_3.4.8)(64bit)  
libstdc++ = 4.1.2-48.el5
libstdc++ = 4.1.1-52.el5
libstdc++.so.6  
libstdc++.so.6(CXXABI_1.3)  
libstdc++.so.6(CXXABI_1.3.1)  
libstdc++.so.6(GLIBCXX_3.4)  
libstdc++.so.6(GLIBCXX_3.4.1)  
libstdc++.so.6(GLIBCXX_3.4.2)  
libstdc++.so.6(GLIBCXX_3.4.3)  
libstdc++.so.6(GLIBCXX_3.4.4)  
libstdc++.so.6(GLIBCXX_3.4.5)  
libstdc++.so.6(GLIBCXX_3.4.6)  
libstdc++.so.6(GLIBCXX_3.4.7)  
libstdc++.so.6(GLIBCXX_3.4.8)  
libstdc++ = 4.1.2-48.el5

isbyeon $ yum whatprovides */libstdc++.so.6.0.9
Rocks-5.4/filelists                                                                                                                           | 2.9 MB     00:00     
extras/filelists_db                                                                                                                           | 225 kB     00:00     
nagios/filelists                                                                                                                              | 4.6 kB     00:09     
updates/filelists_db                                                                                                                          | 3.9 MB     00:00     
No Matches found

isbyeon $ mkdir ~/lib64
isbyeon $ wget http://ftp.stw-bonn.de/pub/fedora/linux/releases/10/Fedora/x86_64/os/Packages/libstdc++-4.3.2-7.x86_64.rpm
isbyeon $ rpm2cpio libstdc++-4.3.2-7.x86_64.rpm | cpio -i --make-directories
isbyeon $ mv usr/lib64/libstdc++.so.6* lib64/
isbyeon $ rm -rf usr
isbyeon $ export LD_LIBRARY_PATH=/home/phosphoros/lib64:$LD_LIBRARY_PATH
isbyeon $ ldd pindel_x86_64 
libstdc++.so.6 => /home/isbyeon/lib64/libstdc++.so.6 (0x00002b2ffd34e000)

반응형
  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기