redhad6.0 Upgrade glibc

Source: Internet
Author: User

0. The following operations on the system redhat6.0 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:

2. Check the version supported by the system glibc:

[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]$ 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

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

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

Decompression command: xz-d glibc-2.14.tar.xz

TAR-XVF Glibc-2.14.tar

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

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]$ CD Build

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


4. Temporarily modify environment variables

[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] bin]$./qmake Usage:./qmake [mode] [options] [files]qmake has both Mo Des, one mode for generating project files based Onsome heuristics, and the other for generating makefiles.  Normally youshouldn ' t need to specify a mode, as makefile generation was the DefaultMode for Qmake Test Qmake on a existing project ...

This is working correctly and the problem is resolved.


redhad6.0 Upgrade glibc

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.