Linux upgrades Glibc and linuxglibc

Source: Internet
Author: User

Linux upgrades Glibc and linuxglibc

I. Introduction

Glibc is the libc library released by gnu, that is, the c Runtime Library. Glibc is the most underlying api in linux, and almost any other Runtime Library depends on glibc. Glibc not only encapsulates the system services provided by the linux operating system, but also provides implementation of many other necessary functional services...

 

This article introduces the Glibc upgrade method, reference: http://www.cppblog.com/prayer/archive/2009/07/22/90836.html

 

Ii. Upgrade

The procedure is as follows:

wget http://ftp.gnu.org/gnu/glibc/glibc-2.15.tar.gzwget http://ftp.gnu.org/gnu/glibc/glibc-ports-2.15.tar.gztar -xvf  glibc-2.15.tar.gztar -xvf  glibc-ports-2.15.tar.gzmv glibc-ports-2.15 glibc-2.15/portsmkdir glibc-build-2.15 cd glibc-build-2.15../glibc-2.15/configure  --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/binmake & make install

After make is successful, a new libc is compiled under the build directory. so.6 (/glibc-build-2.15/libc. so.6, we will find that this is actually a soft connection, the actual lib file is libc. so

cd glibc-build-2.15
ll  libc.so.6

View the library file. You can see that the old library file of version 2.12 is still in progress, the library file of version 2.15 is added, and all soft-link files point to version 2.15.

ll /lib64/libc*

Check the version supported by glibc.

strings libc.so | grep 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.