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:
- [Email protected] bin]$ pwd
- /var/vmdisks/cross/mingw32/bin
- [[email protected] bin]$ ls
- Lrelease QtCore4.dll QtNetwork4.dll QtSql4.dll QtXml4.dll
- MoC QtDeclarative4.dll QtOpenGL4.dll QtSvg4.dll RCC
- Phonon4.dll QtGui4.dll QtScript4.dll QtTest4.dll UIC
- Qmake QtMultimedia4.dll QtScriptTools4.dll QtWebKit4.dll
- [Email protected] bin]$./qmake
- ./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:
- [[email protected] bin]$ strings /lib64/libc.so.6 |grep glibc_
- glibc_2.2.5
- GLIBC_2.2.6  
- glibc_2.3
- GLIBC_2.3.2  
- glibc_2.3.3
- GLIBC_2.3.4  
- glibc_2.4
- GLIBC_2.5  
- glibc_2.6
- GLIBC_2.7  
- glibc_2.8
- GLIBC_2.9  
- glibc_2.10
- GLIBC_2.11  
- glibc_2.12
- 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
- [Email protected] bin]$ Rpm-qa |grep glibc
- glibc-static-2.12-1.80.el6_3.6.x86_64
- Glibc-headers-2.12-1.80.el6_3.6.x86_64
- Glibc-common-2.12-1.80.el6_3.6.x86_64
- Glibc-devel-2.12-1.80.el6_3.6.x86_64
- glibc-static-2.12-1.80.el6_3.6.i686
- glibc-devel-2.12-1.80.el6_3.6.i686
- glibc-2.12-1.80.el6_3.6.i686
- 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/
- [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]$ ls
- Abilist Config.h.in Intl README.LIBM
- Abi-tags config.log io resolv
- ACLOCAL.M4 config.make.in Libc-abis Resource
- Aout Configure LIBIDN RT
- ARGP configure.in Libio Rules
- Assert Conform LICENSES scripts
- Autom4te.cache conformance Locale setjmp
- Bits COPYING LocaleData Shadow
- BUGS COPYING. LIB Login Shlib-versions
- Build Cppflags-iterator.mk Mach Signal
- Cancel-fct-waive Crypt Makeconfig Socket
- cancel-file-waive CSU Makefile SOFT-FP
- Catgets CType Makefile.in Stdio-common
- ChangeLog Debug Makerules stdlib
- Changelog.1 dirent malloc Streams
- changelog.10 DLFCN Manual String
- changelog.11 Elf Math Sunrpc
- changelog.12 extra-lib.mk Misc Sysdeps
- changelog.13 extra-modules.mk NAMESPACE SYSVIPC
- changelog.14 FAQ NEWS Termios
- changelog.15 faq.in NIS test-skeleton.c
- changelog.16 Gmon NOTES Time
- changelog.17 Gnulib NPTL TimeZone
- changelog.2 GRP nptl_db tls.make.c
- changelog.3 Gshadow NSCD Version.h
- Changelog.4 Hesiod NSS Versions.def
- Changelog.5 Hurd O-iterator.mk Wcsmbs
- changelog.6 iconv PO Wctype
- changelog.7 iconvdata POSIX Wur-report
- Changelog.8 include PROJECTS
- changelog.9 inet pwd
- 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
- [[email protected] glibc-2.14]$ mkdir Build
[[email protected] glibc-2.14]$ mkdir Build
- [[Email protected] glibc-2.14]$ CD Build
[[Email protected] glibc-2.14]$ CD Build
D. Run configure configuration, make && sudo make install
- [Email protected] build]$. /configure--prefix=/opt/glibc-2.14
- [Email protected] build]$ Make-j4
- [[email protected] build]$ sudo make install
- [sudo] password for Ghui:
4. Temporarily modify environment variables
- [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
- [Email protected] glibc-2.14]$ cd/var/vmdisks/cross/mingw32/bin/
[Email protected] glibc-2.14]$ cd/var/vmdisks/cross/mingw32/bin/
- [[EMAIL PROTECTED] BIN]$ ./QMAKE   
- usage: ./qmake [mode] [options] [files]
-   
- qmake has two modes, one mode for generating project files based on
- some heuristics, And the other for generating makefiles. normally you
- shouldn ' t need to specify a mode, as makefile generation is the default
- 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