Linux prompts "Libc.so.6:version ' glibc_2.14 ' not Found" system's GLIBC version is too low

Source: Internet
Author: User


Linux prompts "Libc.so.6:version ' glibc_2.14 ' not Found" system's GLIBC version is too low



 The following is operated on the system CentOS 6.3 x86_64



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



[LINUXIDC@LINUXIDC bin]$ pwd  
/var/vmdisks/cross/mingw32/bin  
[LINUXIDC@LINUXIDC bin]$ ls  
lrelease    qtcore4.dll        qtnetwork4.dll      qtsql4.dll    QTXML4.DLL &NBSP
moc          qtdeclarative4.dll  qtopengl4.dll      qtsvg4.dll    rcc  
phonon4.dll  qtgui4.dll          qtscript4.dll      qttest4.dll    uic  
qmake  & nbsp     qtmultimedia4.dll  qtscripttools4.dll  qtwebkit4.dll  
[LINUXIDC@LINUXIDC bin] $./qmake  
./qmake:/lib64/libc.so.6:version ' glibc_2.14 ' not found (required by./qmake)   
2. View the version supported by the system glibc:




[LINUXIDC@LINUXIDC 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



[LINUXIDC@LINUXIDC 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



3. You can see the highest support for only version 2.12, so consider compiling to solve this problem:



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



B. Extract it to/var/vmdisks/glibc-2.14/


[LINUXIDC@LINUXIDC bin]$ cd/var/vmdisks/glibc-2.14/
[LINUXIDC@LINUXIDC glibc-2.14]$ pwd
/var/vmdisks/glibc-2.14
[LINUXIDC@LINUXIDC 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


C. Build a build directory in the GLIBC source directory and CD into the build directory



[LINUXIDC@LINUXIDC glibc-2.14]$ mkdir Build



[LINUXIDC@LINUXIDC glibc-2.14]$ CD Build



D. Run configure configuration, make && sudo make install



[LINUXIDC@LINUXIDC build]$. /configure--prefix=/opt/glibc-2.14
[LINUXIDC@LINUXIDC build]$ Make-j4
[LINUXIDC@LINUXIDC build]$ sudo make install
[sudo] password for Ghui:




4. Temporary modification of environment variables



[LINUXIDC@LINUXIDC bin]$ export ld_library_path=/opt/glibc-2.14/lib: $LD _library_path



[LINUXIDC@LINUXIDC glibc-2.14]$ cd/var/vmdisks/cross/mingw32/bin/



[LINUXIDC@LINUXIDC 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
Shouldn ' t need to specify a mode, as makefile generation is the default
Mode for Qmake, but/may use this to test qmake on a existing project
...



The operation is normal at this time, the problem is solved.


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.