Upgrade Glibc in Linux

Source: Internet
Author: User

Upgrade Glibc in Linux

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 document describes how to upgrade Glibc.

Ii. Upgrade

The procedure is as follows:


Wget http://ftp.gnu.org/gnu/glibc/glibc-2.15.tar.gz

Wget http://ftp.gnu.org/gnu/glibc/glibc-ports-2.15.tar.gz

Tar-xvf glibc-2.15.tar.gz

Tar-xvf glibc-ports-2.15.tar.gz

Mv glibc-ports-2.15 glibc-2.15/ports

Mkdir 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/bin

Make & 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

Dangerous! GHOST (GHOST) vulnerability exposure

GNU glibc gethostbyname Buffer Overflow Vulnerability

Glibc gethostbyname Buffer Overflow Vulnerability (CVE-2015-0235)

Linux glibc ghost vulnerability test and repair methods

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.