glibc profile:
glibc is
GNU
released libc library that c
runtime
. glibc is
linux system
in the bottom of the
API
, virtually any other runtime will depend on glibc. In addition to the package glibc
linux
operating system provides
system services
, but also provides its own achieve many other necessary functions and services. Since glibc include almost all of the
UNIX
accepted standards, one can imagine its content is comprehensive. And just like other UNIX systems, it contains the file system tree group dispersed in
the directory structure
in general as a stand to prop up the entire operating system. In GNU / Linux system, the C library development history points out several important milestones GNU / Linux evolution, using glibc as the C library system is an important milestone in the GNU / Linux evolution.
glibc is a follow
LGPL
release of the license agreement, the free, open
source code
, and easy to download from the network C compiler. GNU C runtime library, a C library function, is used to run some programs
API
set, which are generally pre-
compiled
well to
binary
code exists in the form of
Linux
-based system, GNU C library is typically run as a GNU a portion of the C compiler release.
glibc was originally
the Free Software Foundation
(FSF) for
GNU
operating system written, but the most important application is in line with the current
Linux kernel
, the operating system has become an important part of GNU / Linux.
problem appear
In Centos6 install mysql 5.7.x series an error as follows:
[root@VM_0_5_centos mysql]# rpm -ivh mysql-community-libs-5.7.17-1.el7.x86_64.rpm warning: mysql-community-libs-5.7.17-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY error: Failed dependencies: libc.so.6(GLIBC_2.14)(64bit) is needed by mysql-community-libs-5.7.17-1.el7.x86_64 [root@VM_0_5_centos mysql]#
You need to install it libc.so.6 (GLIBC_2.14) (64bit)
View gblic version installed
strings /lib64/libc.so.6 | grep GLIBC
Do the following:
[root@VM_0_5_centos glibc-2.14]# 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 [root@VM_0_5_centos glibc-2.14]#
Use yum update installation dependent
sudo yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make -y
Download rpm package
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-utils-2.17-55.el6.x86_64.rpm & wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-static-2.17-55.el6.x86_64.rpm & wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-2.17-55.el6.x86_64.rpm & wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-common-2.17-55.el6.x86_64.rpm & wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-devel-2.17-55.el6.x86_64.rpm & wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-headers-2.17-55.el6.x86_64.rpm & wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/nscd-2.17-55.el6.x86_64.rpm &
Once you have downloaded the installation package as follows:
[root@VM_0_5_centos glibc-2.17]# ls -ll -h total 22M -rw-r--r-- 1 root root 4.0M Feb 17 2015 glibc-2.17-55.el6.x86_64.rpm -rw-r--r-- 1 root root 14M Feb 17 2015 glibc-common-2.17-55.el6.x86_64.rpm -rw-r--r-- 1 root root 1020K Feb 17 2015 glibc-devel-2.17-55.el6.x86_64.rpm -rw-r--r-- 1 root root 663K Feb 17 2015 glibc-headers-2.17-55.el6.x86_64.rpm -rw-r--r-- 1 root root 1.7M Feb 17 2015 glibc-static-2.17-55.el6.x86_64.rpm -rw-r--r-- 1 root root 193K Feb 17 2015 glibc-utils-2.17-55.el6.x86_64.rpm -rw-r--r-- 1 root root 250K Feb 17 2015 nscd-2.17-55.el6.x86_64.rpm [root@VM_0_5_centos glibc-2.17]#
Install the rpm package
sudo rpm -Uvh *-2.17-55.el6.x86_64.rpm --force --nodeps
After installation, check the version again
[root@VM_0_5_centos glibc-2.17]# 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_2.13 GLIBC_2.14 GLIBC_2.15 GLIBC_2.16 GLIBC_2.17 GLIBC_PRIVATE
We can see the version number of the one-time increase of 13-17.
Reference: https://baike.baidu.com/item/glibc/10058561