redhat6安装mysql8.0.33

1、下载mysql

官网地址:https://downloads.mysql.com/archives/community/
下载步骤:

过滤操作系统版本

![在这里插入图片描述](https://img-blog.csdnimg.cn/0f6e33af48254fb3a87b1a7e84c2426d.png

下载后,上传到服务器Downloads目录

2、安装mysql8

解压压缩包

tar -xvf mysql-8.0.31-1.el9.x86_64.rpm-bundle.tar

[root@rhel64 Downloads]# tar -xvf mysql-8.0.33-1.el6.x86_64.rpm-bundle.tar

开始安装

rpm -ivh mysql-community-common-8.0.31-1.el9.x86_64.rpm
mysql-community-client-plugins-8.0.31-1.el9.x86_64.rpm
mysql-community-client-8.0.31-1.el9.x86_64.rpm
mysql-community-libs-8.0.31-1.el9.x86_64.rpm
mysql-community-icu-data-files-8.0.31-1.el9.x86_64.rpm
mysql-community-server-8.0.31-1.el9.x86_64.rpm

[root@rhel64 Downloads]# ls
glibc-2.14.tar.gz
mysql-8.0.33-1.el6.x86_64.rpm-bundle.tar
mysql-community-client-8.0.33-1.el6.x86_64.rpm
mysql-community-client-plugins-8.0.33-1.el6.x86_64.rpm
mysql-community-common-8.0.33-1.el6.x86_64.rpm
mysql-community-debuginfo-8.0.33-1.el6.x86_64.rpm
mysql-community-devel-8.0.33-1.el6.x86_64.rpm
mysql-community-icu-data-files-8.0.33-1.el6.x86_64.rpm
mysql-community-libs-8.0.33-1.el6.x86_64.rpm
mysql-community-libs-compat-8.0.33-1.el6.x86_64.rpm
mysql-community-server-8.0.33-1.el6.x86_64.rpm
mysql-community-server-debug-8.0.33-1.el6.x86_64.rpm
mysql-community-test-8.0.33-1.el6.x86_64.rpm
openssl-libs-1.0.2k-19.el7.x86_64.rpm
[root@rhel64 Downloads]# rpm -ivh mysql-community-common-8.0.33-1.el6.x86_64.rpm \
> mysql-community-client-plugins-8.0.33-1.el6.x86_64.rpm \
> mysql-community-client-8.0.33-1.el6.x86_64.rpm \
> mysql-community-libs-8.0.33-1.el6.x86_64.rpm \
> mysql-community-icu-data-files-8.0.33-1.el6.x86_64.rpm \
> mysql-community-server-8.0.33-1.el6.x86_64.rpm 
warning: mysql-community-common-8.0.33-1.el6.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY
error: Failed dependencies:
	libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) is needed by mysql-community-client-plugins-8.0.33-1.el6.x86_64
	libcrypto.so.10(libcrypto.so.10)(64bit) is needed by mysql-community-client-plugins-8.0.33-1.el6.x86_64
	libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) is needed by mysql-community-client-8.0.33-1.el6.x86_64
	libcrypto.so.10(libcrypto.so.10)(64bit) is needed by mysql-community-client-8.0.33-1.el6.x86_64
	libssl.so.10(libssl.so.10)(64bit) is needed by mysql-community-client-8.0.33-1.el6.x86_64
	libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) is needed by mysql-community-libs-8.0.33-1.el6.x86_64
	libcrypto.so.10(libcrypto.so.10)(64bit) is needed by mysql-community-libs-8.0.33-1.el6.x86_64
	libssl.so.10(libssl.so.10)(64bit) is needed by mysql-community-libs-8.0.33-1.el6.x86_64
	libcrypto.so.10(OPENSSL_1.0.1)(64bit) is needed by mysql-community-server-8.0.33-1.el6.x86_64
	libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) is needed by mysql-community-server-8.0.33-1.el6.x86_64
	libcrypto.so.10(libcrypto.so.10)(64bit) is needed by mysql-community-server-8.0.33-1.el6.x86_64
	libssl.so.10(libssl.so.10)(64bit) is needed by mysql-community-server-8.0.33-1.el6.x86_64
[root@rhel64 Downloads]# ls

报缺少libcrypto.so.10、libssl.so.10依赖包错误。rpm -ivh *.rpm时,报libcrypto.so.10()(64bit) is needed by mysql-community-client,如图:

在这里插入图片描述
在https://pkgs.org/download/libcrypto.so.10找到了
https://centos.pkgs.org/7/centos-x86_64/openssl-libs-1.0.2k-19.el7.x86_64.rpm.html

3、解决缺少安装包问题

1下载openssl-libs-1.0.2k-19.el7.x86_64.rpm安装包,上传到目录上

[root@rhel64 Downloads]# rz

[root@rhel64 Downloads]# ls
?:
mysql-8.0.33-1.el6.x86_64.rpm-bundle.tar
mysql-community-client-8.0.33-1.el6.x86_64.rpm
mysql-community-client-plugins-8.0.33-1.el6.x86_64.rpm
mysql-community-common-8.0.33-1.el6.x86_64.rpm
mysql-community-debuginfo-8.0.33-1.el6.x86_64.rpm
mysql-community-devel-8.0.33-1.el6.x86_64.rpm
mysql-community-icu-data-files-8.0.33-1.el6.x86_64.rpm
mysql-community-libs-8.0.33-1.el6.x86_64.rpm
mysql-community-libs-compat-8.0.33-1.el6.x86_64.rpm
mysql-community-server-8.0.33-1.el6.x86_64.rpm
mysql-community-server-debug-8.0.33-1.el6.x86_64.rpm
mysql-community-test-8.0.33-1.el6.x86_64.rpm
openssl-libs-1.0.2k-19.el7.x86_64.rpm

2安装openssl-libs-1.0.2k-19.el7.x86_64.rpm报错,提示缺少libc.so.6(GLIBC_2.14)

[root@rhel64 Downloads]# rpm -ivh openssl-libs-1.0.2k-19.el7.x86_64.rpm --force
warning: openssl-libs-1.0.2k-19.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
error: Failed dependencies:
	libc.so.6(GLIBC_2.14)(64bit) is needed by openssl-libs-1:1.0.2k-19.el7.x86_64
	libc.so.6(GLIBC_2.17)(64bit) is needed by openssl-libs-1:1.0.2k-19.el7.x86_64

3安装glibc版本


[root@rhel64 Downloads]# yum list glibc*
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Installed Packages
glibc.i686                   2.12-1.107.el6         @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
glibc.x86_64                 2.12-1.107.el6         @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
glibc-common.x86_64          2.12-1.107.el6         @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
Available Packages
glibc-devel.i686             2.12-1.107.el6         rhel64                                                 
glibc-devel.x86_64           2.12-1.107.el6         rhel64                                                 
glibc-headers.x86_64         2.12-1.107.el6         rhel64                                                 
glibc-utils.x86_64           2.12-1.107.el6         rhel64                                                 
[root@rhel64 Downloads]# yum install -y  glibc*
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Package glibc-2.12-1.107.el6.x86_64 already installed and latest version
Package glibc-common-2.12-1.107.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package glibc-devel.x86_64 0:2.12-1.107.el6 will be installed
---> Package glibc-headers.x86_64 0:2.12-1.107.el6 will be installed
---> Package glibc-utils.x86_64 0:2.12-1.107.el6 will be installed
--> Processing Dependency: libgd.so.2()(64bit) for package: glibc-utils-2.12-1.107.el6.x86_64
--> Running transaction check
---> Package gd.x86_64 0:2.0.35-11.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================================
 Package                     Arch                 Version                       Repository            Size
===========================================================================================================
Installing:
 glibc-devel                 x86_64               2.12-1.107.el6                rhel64               974 k
 glibc-headers               x86_64               2.12-1.107.el6                rhel64               604 k
 glibc-utils                 x86_64               2.12-1.107.el6                rhel64               160 k
Installing for dependencies:
 gd                          x86_64               2.0.35-11.el6                 rhel64               142 k

Transaction Summary
===========================================================================================================
Install       4 Package(s)

Total download size: 1.8 M
Installed size: 3.6 M
Downloading Packages:
-----------------------------------------------------------------------------------------------------------
Total                                                                       37 MB/s | 1.8 MB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
** Found 9 pre-existing rpmdb problem(s), 'yum check' output follows:
akonadi-1.2.1-2.el6.x86_64 has missing requires of mysql-server
akonadi-1.2.1-2.el6.x86_64 has missing requires of qt4-mysql
perl-DBD-MySQL-4.013-3.el6.x86_64 has missing requires of libmysqlclient.so.16()(64bit)
perl-DBD-MySQL-4.013-3.el6.x86_64 has missing requires of libmysqlclient.so.16(libmysqlclient_16)(64bit)
2:postfix-2.6.6-2.2.el6_1.x86_64 has missing requires of libmysqlclient.so.16()(64bit)
2:postfix-2.6.6-2.2.el6_1.x86_64 has missing requires of libmysqlclient.so.16(libmysqlclient_16)(64bit)
2:postfix-2.6.6-2.2.el6_1.x86_64 has missing requires of mysql-libs
redland-1.0.7-11.el6.x86_64 has missing requires of libmysqlclient.so.16()(64bit)
redland-1.0.7-11.el6.x86_64 has missing requires of libmysqlclient.so.16(libmysqlclient_16)(64bit)
  Installing : gd-2.0.35-11.el6.x86_64                                                                 1/4 
  Installing : glibc-headers-2.12-1.107.el6.x86_64                                                     2/4 
  Installing : glibc-devel-2.12-1.107.el6.x86_64                                                       3/4 
  Installing : glibc-utils-2.12-1.107.el6.x86_64                                                       4/4 
  Verifying  : glibc-devel-2.12-1.107.el6.x86_64                                                       1/4 
  Verifying  : glibc-utils-2.12-1.107.el6.x86_64                                                       2/4 
  Verifying  : glibc-headers-2.12-1.107.el6.x86_64                                                     3/4 
  Verifying  : gd-2.0.35-11.el6.x86_64                                                                 4/4 

Installed:
  glibc-devel.x86_64 0:2.12-1.107.el6                 glibc-headers.x86_64 0:2.12-1.107.el6                
  glibc-utils.x86_64 0:2.12-1.107.el6                

Dependency Installed:
  gd.x86_64 0:2.0.35-11.el6                                                                                

Complete!

4再次执行安装仍然报缺少libc.so.6(GLIBC_2.14)


[root@rhel64 Downloads]# rpm -ivh openssl-libs-1.0.2k-19.el7.x86_64.rpm --force
warning: openssl-libs-1.0.2k-19.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
error: Failed dependencies:
	libc.so.6(GLIBC_2.14)(64bit) is needed by openssl-libs-1:1.0.2k-19.el7.x86_64
	libc.so.6(GLIBC_2.17)(64bit) is needed by openssl-libs-1:1.0.2k-19.el7.x86_64
[root@rhel64 Downloads]# yum install -y  glibc.i686
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Package glibc-2.12-1.107.el6.i686 already installed and latest version
Nothing to do

5按照网上的描述,检查自己是否安装有 glibc 2.14,自己的检查结果如下(清清楚楚写的是有的,可是就是不行):

[root@rhel64 Downloads]# 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@rhel64 Downloads]# 

6升级更高的版本,暂且就使用 glibc 2.17 吧

[root@rhel64 Downloads]# wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
--2023-07-07 03:29:05--  http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
Resolving ftp.gnu.org... failed: Name or service not known.
wget: unable to resolve host address “ftp.gnu.org”
[root@rhel64 Downloads]# ping www.163.com
^C
[root@rhel64 Downloads]# rz

下载http://ftp.gnu.org/gnu/glibc/glibc-2.17.tar.gz,上传到目录

[root@rhel64 Downloads]# ls
glibc-2.14.tar.gz
glibc-2.17.tar.gz
mysql-8.0.33-1.el6.x86_64.rpm-bundle.tar
mysql-community-client-8.0.33-1.el6.x86_64.rpm
mysql-community-client-plugins-8.0.33-1.el6.x86_64.rpm
mysql-community-common-8.0.33-1.el6.x86_64.rpm
mysql-community-debuginfo-8.0.33-1.el6.x86_64.rpm
mysql-community-devel-8.0.33-1.el6.x86_64.rpm
mysql-community-icu-data-files-8.0.33-1.el6.x86_64.rpm
mysql-community-libs-8.0.33-1.el6.x86_64.rpm
mysql-community-libs-compat-8.0.33-1.el6.x86_64.rpm
mysql-community-server-8.0.33-1.el6.x86_64.rpm
mysql-community-server-debug-8.0.33-1.el6.x86_64.rpm
mysql-community-test-8.0.33-1.el6.x86_64.rpm
openssl-libs-1.0.2k-19.el7.x86_64.rpm
[root@rhel64 Downloads]# tar xf glibc-2.14.tar.gz  -C /usr/src
[root@rhel64 Downloads]# cd /usr/src/glibc-2.14/
[root@rhel64 glibc-2.14]# ls
abilist            ChangeLog.2           debug             libc-abis    nptl_db         stdio-common
abi-tags           ChangeLog.3           dirent            libidn       nscd            stdlib
aclocal.m4         ChangeLog.4           dlfcn             libio        nss             streams
aout               ChangeLog.5           elf               LICENSES     o-iterator.mk   string
argp               ChangeLog.6           extra-lib.mk      locale       po              sunrpc
assert             ChangeLog.7           extra-modules.mk  localedata   posix           sysdeps
bits               ChangeLog.8           FAQ               login        PROJECTS        sysvipc
BUGS               ChangeLog.9           FAQ.in            mach         pwd             termios
CANCEL-FCT-WAIVE   conf                  gmon              Makeconfig   README          test-skeleton.c
CANCEL-FILE-WAIVE  config.h.in           gnulib            Makefile     README.libm     time
catgets            config.make.in        grp               Makefile.in  resolv          timezone
ChangeLog          configure             gshadow           Makerules    resource        tls.make.c
ChangeLog.1        configure.in          hesiod            malloc       rt              version.h
ChangeLog.10       conform               hurd              manual       Rules           Versions.def
ChangeLog.11       CONFORMANCE           iconv             math         scripts         wcsmbs
ChangeLog.12       COPYING               iconvdata         misc         setjmp          wctype
ChangeLog.13       COPYING.LIB           include           NAMESPACE    shadow          WUR-REPORT
ChangeLog.14       cppflags-iterator.mk  inet              NEWS         shlib-versions
ChangeLog.15       crypt                 INSTALL           nis          signal
ChangeLog.16       csu                   intl              NOTES        socket
ChangeLog.17       ctype                 io                nptl         soft-fp
[root@rhel64 glibc-2.14]# mkdir build
[root@rhel64 glibc-2.14]# cd build/
[root@rhel64 build]# ../configure --prefix=/usr/local/glibc-2.14
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/usr/src/glibc-2.14/build':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
[root@rhel64 build]# ls
config.log

7配置安装路径…/configure --prefix=/usr/local/glibc-2.14时报错,-----原因:没有c编译器
-----解决办法:安装gcc

[root@rhel64 build]# yum install gcc
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.4.7-3.el6 will be installed
--> Processing Dependency: cpp = 4.4.7-3.el6 for package: gcc-4.4.7-3.el6.x86_64
--> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.7-3.el6.x86_64
--> Running transaction check
---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed
--> Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
--> Processing Dependency: libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
---> Package cpp.x86_64 0:4.4.7-3.el6 will be installed
--> Processing Dependency: libmpfr.so.1()(64bit) for package: cpp-4.4.7-3.el6.x86_64
--> Running transaction check
---> Package mpfr.x86_64 0:2.4.1-6.el6 will be installed
---> Package ppl.x86_64 0:0.10.2-11.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================================
 Package                  Arch                  Version                        Repository             Size
===========================================================================================================
Installing:
 gcc                      x86_64                4.4.7-3.el6                    rhel64                 10 M
Installing for dependencies:
 cloog-ppl                x86_64                0.15.7-1.2.el6                 rhel64                 93 k
 cpp                      x86_64                4.4.7-3.el6                    rhel64                3.7 M
 mpfr                     x86_64                2.4.1-6.el6                    rhel64                156 k
 ppl                      x86_64                0.10.2-11.el6                  rhel64                1.3 M

Transaction Summary
===========================================================================================================
Install       5 Package(s)

Total download size: 15 M
Installed size: 33 M
Is this ok [y/N]: y
Downloading Packages:
-----------------------------------------------------------------------------------------------------------
Total                                                                       92 MB/s |  15 MB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : mpfr-2.4.1-6.el6.x86_64                                                                 1/5 
  Installing : cpp-4.4.7-3.el6.x86_64                                                                  2/5 
  Installing : ppl-0.10.2-11.el6.x86_64                                                                3/5 
  Installing : cloog-ppl-0.15.7-1.2.el6.x86_64                                                         4/5 
  Installing : gcc-4.4.7-3.el6.x86_64                                                                  5/5 
  Verifying  : ppl-0.10.2-11.el6.x86_64                                                                1/5 
  Verifying  : gcc-4.4.7-3.el6.x86_64                                                                  2/5 
  Verifying  : cpp-4.4.7-3.el6.x86_64                                                                  3/5 
  Verifying  : cloog-ppl-0.15.7-1.2.el6.x86_64                                                         4/5 
  Verifying  : mpfr-2.4.1-6.el6.x86_64                                                                 5/5 

Installed:
  gcc.x86_64 0:4.4.7-3.el6                                                                                 

Dependency Installed:
  cloog-ppl.x86_64 0:0.15.7-1.2.el6        cpp.x86_64 0:4.4.7-3.el6        mpfr.x86_64 0:2.4.1-6.el6       
  ppl.x86_64 0:0.10.2-11.el6              

Complete!
[root@rhel64 build]# 
[root@rhel64 build]# ls
config.log
[root@rhel64 build]# ../configure --prefix=/usr/local/glibc-2.14

8再次执行…/configure ,成功

[root@rhel64 build]# ../configure --prefix=/usr/local/glibc-2.14
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
configure: running configure fragment for add-on libidn
configure: running configure fragment for add-on nptl
checking for assembler gnu_indirect_function symbol type support... yes
checking whether .text pseudo-op must be used... yes
checking for assembler global-symbol directive... .globl
checking for assembler .type directive prefix... @
checking sysdep dirs... sysdeps/x86_64/elf nptl/sysdeps/unix/sysv/linux/x86_64 sysdeps/unix/sysv/linux/x86_64 sysdeps/unix/sysv/linux/wordsize-64 nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet nptl/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/x86_64 nptl/sysdeps/unix sysdeps/unix sysdeps/posix sysdeps/x86_64/fpu sysdeps/x86_64/multiarch nptl/sysdeps/x86_64 sysdeps/x86_64 sysdeps/wordsize-64 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64/wordsize-64 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether as is GNU as... yes
checking whether ld is GNU ld... yes
checking for as... as
checking version of as... 2.20.51.0.2, ok
checking for ld... ld
checking version of ld... 2.20.51.0.2, ok
checking for pwd... /bin/pwd
checking for gcc... gcc
checking version of gcc... 4.4.7, ok
checking for gnumake... no
checking for gmake... gmake
checking version of gmake... 3.81, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... msgfmt
checking version of msgfmt... 0.17, ok
checking for makeinfo... no
checking for sed... sed
checking version of sed... 4.2.1, ok
checking for autoconf... no
configure: WARNING:
*** These auxiliary programs are missing or incompatible versions: makeinfo autoconf
*** some features will be disabled.
*** Check the INSTALL file for required versions.
checking LD_LIBRARY_PATH variable... ok
checking whether GCC supports -static-libgcc... -static-libgcc
checking for bash... /bin/bash
checking for gawk... gawk
checking for perl... /usr/bin/perl
checking for install-info... /sbin/install-info
checking for bison... no
checking for signed size_t type... no
checking for libc-friendly stddef.h... yes
checking whether we need to use -P to assemble .S files... no
checking for .set assembler directive... yes
checking for assembler gnu_unique_object symbol type... yes
checking for .symver assembler directive... yes
checking for ld --version-script... yes
checking for .previous assembler directive... yes
checking for .protected and .hidden assembler directive... yes
checking whether __attribute__((visibility())) is supported... yes
checking for broken __attribute__((visibility()))... no
checking for broken __attribute__((alias()))... no
checking whether to put _rtld_local into .sdata section... no
checking for .preinit_array/.init_array/.fini_array support... yes
checking for libunwind-support in compiler... no
checking for -z nodelete option... yes
checking for -z nodlopen option... yes
checking for -z initfirst option... yes
checking for -z relro option... yes
checking for -Bgroup option... yes
checking for libgcc_s suffix... 
checking for --as-needed option... yes
checking whether --noexecstack is desirable for .S files... yes
checking for -z combreloc... yes
checking for -z execstack... yes
checking for -fpie... yes
checking for --hash-style option... yes
checking for -fno-toplevel-reorder -fno-section-anchors... yes
checking for -fstack-protector... yes
checking for -fgnu89-inline... yes
checking whether cc puts quotes around section names... no
checking for assembler .weak directive... yes
checking whether CFI directives are supported... yes
checking for ld --no-whole-archive... yes
checking for gcc -fexceptions... yes
checking for __builtin_expect... yes
checking for __builtin_memset... yes
checking for redirection of built-in functions... yes
checking for __thread... yes
checking for tls_model attribute... yes
checking for libgd... no
checking for is_selinux_enabled in -lselinux... no
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking size of long double... 16
running configure fragment for sysdeps/x86_64/elf
checking for x86-64 TLS support... yes
running configure fragment for nptl/sysdeps/pthread
checking for forced unwind support... yes
checking for C cleanup handling... yes
running configure fragment for sysdeps/pthread
running configure fragment for sysdeps/unix/sysv/linux
checking for grep that handles long lines and -e... (cached) /bin/grep
checking for egrep... (cached) /bin/grep -E
checking installed Linux kernel header files... 2.0.10 or later
checking for kernel header at least 2.4.0... ok
checking for symlinks in /usr/local/glibc-2.14/include... ok
running configure fragment for nptl/sysdeps/x86_64
checking for .cfi_personality and .cfi_lsda pseudo-ops... yes
running configure fragment for sysdeps/x86_64
checking for grep that handles long lines and -e... (cached) /bin/grep
checking for egrep... (cached) /bin/grep -E
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking cpuid.h usability... yes
checking cpuid.h presence... yes
checking for cpuid.h... yes
checking if -g produces usable source locations for assembler-with-cpp... yes
checking for SSE4 support... yes
checking for assembler -mtune=i686 support... yes
checking for AVX support... yes
checking for -mno-vzeroupper support... no
checking for old glibc 2.0.x headers... no
checking whether -fPIC is default... no
configure: creating ./config.status
config.status: creating config.make
config.status: creating Makefile
config.status: creating config.h
config.status: executing default commands
[root@rhel64 build]# 

编译安装

[root@rhel64 build]# make -j4
[root@rhel64 build]# make  instal
.././scripts/mkinstalldirs /usr/local/glibc-2.14/lib/audit
mkdir /usr/local/glibc-2.14/lib/audit
/usr/bin/install -c /usr/src/glibc-2.14/build/elf/sotruss-lib.so /usr/local/glibc-2.14/lib/audit/sotruss-lib.so.new
mv -f /usr/local/glibc-2.14/lib/audit/sotruss-lib.so.new /usr/local/glibc-2.14/lib/audit/sotruss-lib.so
/usr/bin/install -c /usr/src/glibc-2.14/build/elf/sprof /usr/local/glibc-2.14/bin/sprof.new
mv -f /usr/local/glibc-2.14/bin/sprof.new /usr/local/glibc-2.14/bin/sprof
/usr/bin/install -c /usr/src/glibc-2.14/build/elf/ldd /usr/local/glibc-2.14/bin/ldd.new
mv -f /usr/local/glibc-2.14/bin/ldd.new /usr/local/glibc-2.14/bin/ldd
/usr/bin/install -c /usr/src/glibc-2.14/build/elf/sotruss /usr/local/glibc-2.14/bin/sotruss.new
mv -f /usr/local/glibc-2.14/bin/sotruss.new /usr/local/glibc-2.14/bin/sotruss
/usr/bin/install -c /usr/src/glibc-2.14/build/elf/sln /usr/local/glibc-2.14/sbin/sln.new
mv -f /usr/local/glibc-2.14/sbin/sln.new /usr/local/glibc-2.14/sbin/sln
/usr/bin/install -c /usr/src/glibc-2.14/build/elf/ldconfig /usr/local/glibc-2.14/sbin/ldconfig.new
mv -f /usr/local/glibc-2.14/sbin/ldconfig.new /usr/local/glibc-2.14/sbin/ldconfig
(cd /usr/src/glibc-2.14/build/elf/.; objdump -h dl-load.o dl-cache.o dl-lookup.o dl-object.o dl-reloc.o dl-deps.o dl-runtime.o dl-error.o dl-init.o dl-fini.o dl-debug.o dl-misc.o dl-version.o dl-profile.o dl-conflict.o dl-tls.o dl-origin.o dl-scope.o dl-execstack.o dl-open.o dl-close.o dl-trampoline.o dl-support.o dl-iteratephdr.o dl-addr.o enbl-secure.o dl-profstub.o dl-libc.o dl-sym.o dl-tsd.o dl-sysdep.o dl-vdso.o tlsdesc.o dl-tlsdesc.o dl-iteratephdr.os dl-addr.os dl-profstub.os dl-libc.os dl-sym.os dl-tsd.os dl-vdso.os rtld.os dl-load.os dl-cache.os dl-lookup.os dl-object.os dl-reloc.os dl-deps.os dl-runtime.os dl-error.os dl-init.os dl-fini.os dl-debug.os dl-misc.os dl-version.os dl-profile.os dl-conflict.os dl-tls.os dl-origin.os dl-scope.os dl-execstack.os dl-caller.os dl-open.os dl-close.os dl-trampoline.os dl-sysdep.os dl-environ.os dl-minimal.os dl-brk.os dl-sbrk.os dl-getcwd.os dl-openat64.os dl-opendir.os dl-fxstatat64.os tlsdesc.os dl-tlsdesc.os soinit.os sofini.os interp.os cache.o readlib.o xmalloc.o xstrdup.o chroot_canon.o sotruss-lib.os sotruss-lib.so) | \
	gawk '/\.gnu\.glibc-stub\./ { \
		  sub(/\.gnu\.glibc-stub\./, "", $2); \
		  stubs[$2] = 1; } \
		END { for (s in stubs) print "#define __stub_" s }' > /usr/src/glibc-2.14/build/elf/stubsT
mv -f /usr/src/glibc-2.14/build/elf/stubsT /usr/src/glibc-2.14/build/elf/stubs
make[2]: Leaving directory `/usr/src/glibc-2.14/elf'
./scripts/mkinstalldirs /usr/local/glibc-2.14/include/gnu
(sed '/^@/d' include/stubs-prologue.h; LC_ALL=C sort /usr/src/glibc-2.14/build/csu/stubs /usr/src/glibc-2.14/build/iconv/stubs /usr/src/glibc-2.14/build/locale/stubs /usr/src/glibc-2.14/build/localedata/stubs /usr/src/glibc-2.14/build/iconvdata/stubs /usr/src/glibc-2.14/build/assert/stubs /usr/src/glibc-2.14/build/ctype/stubs /usr/src/glibc-2.14/build/intl/stubs /usr/src/glibc-2.14/build/catgets/stubs /usr/src/glibc-2.14/build/math/stubs /usr/src/glibc-2.14/build/setjmp/stubs /usr/src/glibc-2.14/build/signal/stubs /usr/src/glibc-2.14/build/stdlib/stubs /usr/src/glibc-2.14/build/stdio-common/stubs /usr/src/glibc-2.14/build/libio/stubs /usr/src/glibc-2.14/build/dlfcn/stubs /usr/src/glibc-2.14/build/malloc/stubs /usr/src/glibc-2.14/build/string/stubs /usr/src/glibc-2.14/build/wcsmbs/stubs /usr/src/glibc-2.14/build/timezone/stubs /usr/src/glibc-2.14/build/time/stubs /usr/src/glibc-2.14/build/dirent/stubs /usr/src/glibc-2.14/build/grp/stubs /usr/src/glibc-2.14/build/pwd/stubs /usr/src/glibc-2.14/build/posix/stubs /usr/src/glibc-2.14/build/io/stubs /usr/src/glibc-2.14/build/termios/stubs /usr/src/glibc-2.14/build/resource/stubs /usr/src/glibc-2.14/build/misc/stubs /usr/src/glibc-2.14/build/socket/stubs /usr/src/glibc-2.14/build/sysvipc/stubs /usr/src/glibc-2.14/build/gmon/stubs /usr/src/glibc-2.14/build/gnulib/stubs /usr/src/glibc-2.14/build/wctype/stubs /usr/src/glibc-2.14/build/manual/stubs /usr/src/glibc-2.14/build/shadow/stubs /usr/src/glibc-2.14/build/gshadow/stubs /usr/src/glibc-2.14/build/po/stubs /usr/src/glibc-2.14/build/argp/stubs /usr/src/glibc-2.14/build/crypt/stubs /usr/src/glibc-2.14/build/nptl/stubs /usr/src/glibc-2.14/build/resolv/stubs /usr/src/glibc-2.14/build/nss/stubs /usr/src/glibc-2.14/build/rt/stubs /usr/src/glibc-2.14/build/conform/stubs /usr/src/glibc-2.14/build/debug/stubs /usr/src/glibc-2.14/build/libidn/stubs /usr/src/glibc-2.14/build/nptl_db/stubs /usr/src/glibc-2.14/build/inet/stubs /usr/src/glibc-2.14/build/hesiod/stubs /usr/src/glibc-2.14/build/sunrpc/stubs /usr/src/glibc-2.14/build/nis/stubs /usr/src/glibc-2.14/build/nscd/stubs /usr/src/glibc-2.14/build/streams/stubs /usr/src/glibc-2.14/build/login/stubs /usr/src/glibc-2.14/build/elf/stubs) > /usr/src/glibc-2.14/build/stubs.h
if test -r /usr/local/glibc-2.14/include/gnu/stubs-64.h && cmp -s /usr/src/glibc-2.14/build/stubs.h /usr/local/glibc-2.14/include/gnu/stubs-64.h; \
	then echo 'stubs.h unchanged'; \
	else /usr/bin/install -c -m 644 /usr/src/glibc-2.14/build/stubs.h /usr/local/glibc-2.14/include/gnu/stubs-64.h; fi
rm -f /usr/src/glibc-2.14/build/stubs.h
/usr/src/glibc-2.14/build/elf/sln /usr/src/glibc-2.14/build/elf/symlink.list
rm -f /usr/src/glibc-2.14/build/elf/symlink.list
test ! -x /usr/src/glibc-2.14/build/elf/ldconfig || LC_ALL=C LANGUAGE=C \
	  /usr/src/glibc-2.14/build/elf/ldconfig  \
				       /usr/local/glibc-2.14/lib /usr/local/glibc-2.14/lib
/usr/src/glibc-2.14/build/elf/ldconfig: Can't open configuration file /usr/local/glibc-2.14/etc/ld.so.conf: No such file or directory
make[1]: Leaving directory `/usr/src/glibc-2.14'
[root@rhel64 build]#

复制替换后再次检查版本

[root@rhel64 build]# find / -name "ld.so.conf"
/etc/ld.so.conf
[root@rhel64 build]# cp /etc/ld.so.conf /usr/local/glibc-2.14/etc/
[root@rhel64 build]# mv /lib64/libc.so.6 /lib64/libc.so.6.bak
[root@rhel64 build]# LD_PRELOAD=/usr/local/glibc-2.14/lib/libc-2.14.so ln -s /usr/local/glibc-2.14/lib/libc-2.14.so /lib64/libc.so.6
[root@rhel64 build]# 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_PRIVATE
[root@rhel64 build]# 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:/a/35261.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

山海鲸Cesium:帮你用更简单的方式升级视效

CesiumJS作为绝大多数人都在用的开源地球可视化引擎,视觉效果并不拔尖,这让很多giser都想着有一天升级一下视效,从众多平庸的项目中脱颖而出。然而,对于一些使用Cesium的项目来说,要想达到Cesium for unreal的视觉效果…

Jetson Orin Nano Developer Kit

Jetson Orin Nano Developer Kit包括Jetson Orin Nano 8GB模块,该模块具有NVIDIA安培GPU(具有1024个CUDA内核和32个第三代张量内核)和6核ARM CPU,能够运行多个并发AI应用程序管道并提供高推断性能。 开发套件载体板支持所有Jetson Orin Nano和Orin NX模块…

多层感知机与深度学习算法概述

多层感知机与深度学习算法概述 读研之前那会儿我们曾纠结于机器学习、深度学习、神经网络这些概念的异同。现在看来深度学习这一算法竟然容易让人和他的爸爸机器学习搞混…可见深度学习技术的影响力之大。深度学习,作为机器学习家族中目前最有价值的一种算法&#…

Java安全——安全提供者

Java安全 安全提供者 在Java中,安全提供者(Security Provider)是一种实现了特定安全服务的软件模块。它提供了一系列的加密、解密、签名、验证和随机数生成等安全功能。安全提供者基础设施在Java中的作用是为开发人员提供一种扩展和替换标准…

Java性能权威指南-总结26

Java性能权威指南-总结26 数据库性能的最佳实践异常日志 数据库性能的最佳实践 异常 Java的异常处理一直有代价高昂的坏名声。其代价确实比处理正常的控制流高一些,不过在大多数情况下,这种代价并不值得浪费精力去绕过。另一方面,因为异常处…

【面试】美团面试真题和答案

文章目录 前言1.线程池有几种实现方式?2.线程池的参数含义?3.锁升级的过程?4.i 如何保证线程安全?5.HashMap和ConcurrentHashMap有什么区别?6.Autowired和Resource区别?7.说说常用的设计模式8.Redis为什么这…

SpringBoot2+Vue2实战(十二)springboot一对一,一对多查询

新建数据库表 Course Data TableName("t_course") public class Course implements Serializable {private static final long serialVersionUID 1L;/*** id*/TableId(value "id", type IdType.AUTO)private Integer id;/*** 课程名称*/private String…

微信小程序制作 购物商城首页 【内包含源码】

1、实现效果 手机效果预览,这里的首页使用到了轮播图。页面图片数据可以替换成自己的数据。 2、开发者工具效果图 3、项目的目录结构 4、首页核心代码 4.1 index.js 这里用来存放数据,页面的数据。目前是假数据,也可以调用接口接收真实数据 // index.jsimport {request }…

【我的创作纪念日】关于某站的音频爬虫+GUI

文章目录 一、前言&机遇二、爬虫代码三、爬虫GUI四、文件打包五、结果展示未来可期 一、前言&机遇 许久没看私信内容,一上线就看到了官方的私信,我已经来到CSDN1024天啦! 想到注册这个号的初衷是学习记录爬虫,后面渐渐变…

【计算机视觉 | 目标检测】arxiv 计算机视觉关于目标检测的学术速递(7 月 3 日论文合集)

文章目录 一、检测相关(9篇)1.1 Federated Ensemble YOLOv5 - A Better Generalized Object Detection Algorithm1.2 Zero-shot Nuclei Detection via Visual-Language Pre-trained Models1.3 Federated Object Detection for Quality Inspection in Shared Production1.4 Comp…

【数据科学和可视化】反思十年数据科学和可视化工具的未来

数据科学在过去十年中呈爆炸式增长,改变了我们开展业务的方式,并让下一代年轻人为未来的工作做好准备。但是这种快速增长伴随着对数据科学工作的不断发展的理解,这导致我们在如何使用数据科学从我们的大量数据中获得可操作的见解方面存在很多…

Django的数据库配置、生成(创建)过程、写入数据、查看数据的学习过程记录

目录 01-配置数据库信息02-安装Python的MySQL数据库驱动程序 mysqlclient03-安装Mysql,并启动Mysql04-定义Django的数据库模型(定义数据表-编写models.py文件)05-按照数据的配置生成数据库(执行迁移命令)05-01-生成迁移执行文件05-02-执行数据库模型迁移 06-查看数据…

git bash 命令行反应慢、卡顿

1. 在Windows11的电脑上安装了git 后,鼠标右键打开git bash here,打开窗口缓慢,输入命令也慢的要死,如果安装git的时候选择在桌面创建图标,通过桌面图标打开也是一样的 2. 最简单的ls 命令,都要停顿半秒 3.…

m4a音频格式转换器:让音频轻松换装

大家有没有遇到这样的情况——你下载了一个很酷的音频文件,但是播放设备却说“不认识”这个格式?别担心!现在有个超级厉害的工具可以帮你解决这个问题,它就是m4a音频格式转换器!它能让你的音频文件变身,适应…

TiDB(2):TiDB架构特性

1 TiDB 整体架构 TiDB 集群主要包括三个核心组件:TiDB Server,PD Server 和 TiKV Server。此外,还有用于解决用户复杂 OLAP 需求的 TiSpark 组件和简化云上部署管理的 TiDB Operator 组件。 架构图解 1.1 TiDB Server TiDB Server 负责接收…

技术服务企业缺成本票,所得税高怎么解决?可有良策?

技术服务企业缺成本票,所得税高怎么解决?可有良策? 《税筹顾问》专注于园区招商、企业税务筹划,合理合规助力企业节税! 技术服务型企业最核心的价值就是为客户提供技术支撑,而这类型的企业在税务方面面临的…

CSRF漏洞复现

目录 CSRF产生的条件CSRF漏洞分类CSRF漏洞危害CSRF漏洞检测CSRF漏洞修复方案利用靶场CSRF-Minefield-V1.0漏洞复现 CSRF产生的条件 一、被攻击者在登陆了web网页,并且在本地生成了cookie 二、在cookie未过期的情况下,利用同一个浏览器访问了攻击者的页…

最新版Flink CDC MySQL同步Elasticsearch(一)

1.环境准备 首先我们要基于Flink CDC MySQL同步MySQL的环境基础上(flink-1.17.1、Java8、MySQL8)搭建Elasticsearch7-17-10和Kibana 7.17.10。笔者已经搭建好环境,这里不做具体演示了,如果需要Es的搭建教程情况笔者其他博客 注意…

JVM源码剖析之Java对象创建过程

关于 "Java的对象创建" 这个话题分布在各种论坛、各种帖子,文章的水平参差不齐。并且大部分仅仅是总结 "面试宝典" 的流程,小部分就是copy其他帖子,极少能看到拿源码作为论证。所以特意写下这篇文章。 版本信息如下&…

Eclipse显示层级目录结构(像IDEA一样)

有的小伙伴使用IDEA习惯了,可能进入公司里面要求使用eclipse,但是eclipse默认目录是并列显示,而不是层级显示。部分人用起来感觉十分不方便。我们可以更改一下设置。 1、打开eclipse,找到这里 2、选择PackagePresentation 3、选…