Solve the problem of libc.so.6:version ' glibc_2.14 ' not found

Source: Internet
Author: User
Tags crypt intl

0. The following are operating on the system CentOS 6.3 x86_64

1. Attempt to run the program, prompting "Libc.so.6:version ' glibc_2.14 ' not found" because the GLIBC version of the system is too low and the software is compiled with a higher version of GLIBC caused by:

  1. [Email protected] bin]$ pwd
  2. /var/vmdisks/cross/mingw32/bin
  3. [[email protected] bin]$ ls
  4. Lrelease QtCore4.dll QtNetwork4.dll QtSql4.dll QtXml4.dll
  5. MoC QtDeclarative4.dll QtOpenGL4.dll QtSvg4.dll RCC
  6. Phonon4.dll QtGui4.dll QtScript4.dll QtTest4.dll UIC
  7. Qmake QtMultimedia4.dll QtScriptTools4.dll QtWebKit4.dll
  8. [Email protected] bin]$./qmake
  9. ./qmake:/lib64/libc.so.6:version ' glibc_2.14 ' not found (required by./qmake)
[Email protected] bin]$ pwd/var/vmdisks/cross/mingw32/bin[[email protected] bin]$ lslrelease     QtCore4.dll         QtNetwork4.dll      QtSql4.dll     qtxml4.dllmoc          QtDeclarative4.dll  QtOpenGL4.dll       QtSvg4.dll     Rccphonon4.dll  QtGui4.dll          QtScript4.dll       QtTest4.dll    uicqmake        QtMultimedia4.dll   QtScriptTools4.dll  qtwebkit4.dll[[email protected] bin]$./qmake/qmake:/lib64/libc.so.6:version ' glibc_2.14 ' Not found (required by./qmake)

2. Check the version supported by the system glibc:
    1. [[email protected] bin]$ strings /lib64/libc.so.6  |grep glibc_  
    2. glibc_2.2.5  
    3. GLIBC_2.2.6  
    4. glibc_2.3  
    5. GLIBC_2.3.2  
    6. glibc_2.3.3  
    7. GLIBC_2.3.4  
    8. glibc_2.4  
    9. GLIBC_2.5  
    10. glibc_2.6  
    11. GLIBC_2.7  
    12. glibc_2.8  
    13. GLIBC_2.9  
    14. glibc_2.10  
    15. GLIBC_2.11  
    16. glibc_2.12  
    17. GLIBC_PRIVATE  
[Email protected] bin]$ strings/lib64/libc.so.6 |grep glibc_glibc_2.2.5glibc_2.2.6glibc_2.3glibc_2.3.2glibc_ 2.3.3glibc_2.3.4glibc_2.4glibc_2.5glibc_2.6glibc_2.7glibc_2.8glibc_2.9glibc_2.10glibc_2.11glibc_2.12glibc_ PRIVATE
    1. [Email protected] bin]$ Rpm-qa |grep glibc
    2. glibc-static-2.12-1.80.el6_3.6.x86_64
    3. Glibc-headers-2.12-1.80.el6_3.6.x86_64
    4. Glibc-common-2.12-1.80.el6_3.6.x86_64
    5. Glibc-devel-2.12-1.80.el6_3.6.x86_64
    6. glibc-static-2.12-1.80.el6_3.6.i686
    7. glibc-devel-2.12-1.80.el6_3.6.i686
    8. glibc-2.12-1.80.el6_3.6.i686
    9. Glibc-2.12-1.80.el6_3.6.x86_64
[Email protected] bin]$ Rpm-qa |grep glibcglibc-static-2.12-1.80.el6_3.6.x86_64glibc-headers-2.12-1.80.el6_3.6.x86 _64glibc-common-2.12-1.80.el6_3.6.x86_64glibc-devel-2.12-1.80.el6_3.6.x86_64glibc-static-2.12-1.80.el6_3.6. I686glibc-devel-2.12-1.80.el6_3.6.i686glibc-2.12-1.80.el6_3.6.i686glibc-2.12-1.80.el6_3.6.x86_64

3. You can see that up to 2.12 versions are supported, so consider compiling to solve this problem:

A. To http://www.gnu.org/software/libc/download the latest version, I download the GLIBC-2.14.TAR.XZ this version, extract to any directory ready to compile

B. Unzip here to/var/vmdisks/glibc-2.14/

  1. [Email protected] bin]$ cd/var/vmdisks/glibc-2.14/
  2. [Email protected] glibc-2.14]$ pwd
  3. /var/vmdisks/glibc-2.14
  4. [[email protected] glibc-2.14]$ ls
  5. Abilist Config.h.in Intl README.LIBM
  6. Abi-tags config.log io resolv
  7. ACLOCAL.M4 config.make.in Libc-abis Resource
  8. Aout Configure LIBIDN RT
  9. ARGP configure.in Libio Rules
  10. Assert Conform LICENSES scripts
  11. Autom4te.cache conformance Locale setjmp
  12. Bits COPYING LocaleData Shadow
  13. BUGS COPYING. LIB Login Shlib-versions
  14. Build Cppflags-iterator.mk Mach Signal
  15. Cancel-fct-waive Crypt Makeconfig Socket
  16. cancel-file-waive CSU Makefile SOFT-FP
  17. Catgets CType Makefile.in Stdio-common
  18. ChangeLog Debug Makerules stdlib
  19. Changelog.1 dirent malloc Streams
  20. changelog.10 DLFCN Manual String
  21. changelog.11 Elf Math Sunrpc
  22. changelog.12 extra-lib.mk Misc Sysdeps
  23. changelog.13 extra-modules.mk NAMESPACE SYSVIPC
  24. changelog.14 FAQ NEWS Termios
  25. changelog.15 faq.in NIS test-skeleton.c
  26. changelog.16 Gmon NOTES Time
  27. changelog.17 Gnulib NPTL TimeZone
  28. changelog.2 GRP nptl_db tls.make.c
  29. changelog.3 Gshadow NSCD Version.h
  30. Changelog.4 Hesiod NSS Versions.def
  31. Changelog.5 Hurd O-iterator.mk Wcsmbs
  32. changelog.6 iconv PO Wctype
  33. changelog.7 iconvdata POSIX Wur-report
  34. Changelog.8 include PROJECTS
  35. changelog.9 inet pwd
  36. Conf INSTALL README
[[email protected] bin]$ cd/var/vmdisks/glibc-2.14/[[email protected] glibc-2.14]$ pwd/var/VMdisks/ Glibc-2.14[[email protected] glibc-2.14]$ lsabilist config.h.in Intl Readme.libmabi-ta GS config.log IO resolvaclocal.m4 config.make.in libc-abis Resourceao UT Configure libidn rtargp configure.in Libio rulesasser T conform LICENSES Scriptsautom4te.cache conformance locale SETJMPBI TS COPYING localedata shadowbugs COPYING.   LIB login Shlib-versionsbuild cppflags-iterator.mk Mach signalcancel-fct-waive            Crypt Makeconfig socketcancel-file-waive CSU Makefile soft-fpcatgets        CType Makefile.in Stdio-commonchangelog  Debug Makerules stdlibchangelog.1 dirent malloc streamschangelog.10        DLFCN manual stringchangelog.11 elf Math sunrpcchangelog.12 Extra-lib.mk misc sysdepschangelog.13 extra-modules.mk NAMESPACE Sysvipcchangelo g.14 FAQ NEWS termioschangelog.15 faq.in NIS test-skelet on.cchangelog.16 Gmon NOTES timechangelog.17 gnulib nptl ti           mezonechangelog.2 grp nptl_db tls.make.cchangelog.3 Gshadow NSCD                  Version.hchangelog.4 Hesiod NSS Versions.defchangelog.5 Hurd             O-iterator.mk wcsmbschangelog.6 iconv po wctypechangelog.7 iconvdata POSIX wur-reportchangelog.8 include projectschangelog.9 inet pwdconf INSTA LL README

C. Create a build directory in the GLIBC source directory and CD into the build directory
    1. [[email protected] glibc-2.14]$ mkdir Build
[[email protected] glibc-2.14]$ mkdir Build
    1. [[Email protected] glibc-2.14]$ CD Build
[[Email protected] glibc-2.14]$ CD Build

D. Run configure configuration, make && sudo make install
    1. [Email protected] build]$. /configure--prefix=/opt/glibc-2.14
    2. [Email protected] build]$ Make-j4
    3. [[email protected] build]$ sudo make install
    4. [sudo] password for Ghui:

4. Temporarily modify environment variables
    1. [Email protected] bin]$ export ld_library_path=/opt/glibc-2.14/lib: $LD _library_path
[Email protected] bin]$ export ld_library_path=/opt/glibc-2.14/lib: $LD _library_path
    1. [Email protected] glibc-2.14]$ cd/var/vmdisks/cross/mingw32/bin/
[Email protected] glibc-2.14]$ cd/var/vmdisks/cross/mingw32/bin/

    1. [[EMAIL PROTECTED] BIN]$ ./QMAKE   
    2. usage: ./qmake [mode] [options] [files]  
    3.   
    4. qmake has two modes, one mode for generating  project files based on  
    5. some heuristics,  And the other for generating makefiles. normally you   
    6. shouldn ' t need to specify a mode, as makefile  generation is the default  
    7. for qmake, but you may use  this to test qmake on an existing project  

From:

http://blog.csdn.net/cpplang/article/details/8462768

Solve the problem of libc.so.6:version ' glibc_2.14 ' not found

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.