XtraBackup backup appears "Can't locate Digest/MD5.pm in @ INC", xtrabackupm5.pm
Xtrabackup 2.4.5 (innobackupex version 2.4.5 Linux (x86_64) (revision id: e41c0be) is installed on CentOS 7 )), the following error message "Can't locate Digest/MD5.pm in @ INC (@ INC contains: /usr/local/lib64/perl5/usr/local/share/perl5/usr/lib64/perl5/vendor_perl/usr/share/perl5/vendor_perl/usr/lib64/perl5/usr /share/perl5 .) at-line 693 ". The error message is as follows:
170222 10:57:29 innobackupex: Starting the backup operation
IMPORTANT: Please check that the backup run completes successfully.
At the end of a successful backup run innobackupex
prints "completed OK!".
Can't locate Digest/MD5.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at - line 693.
BEGIN failed--compilation aborted at - line 693.
170222 10:57:29 Connecting to MySQL server host: 127.0.0.1, user: root, password: set, port: 3306, socket: (null)
Using server version 5.6.20-enterprise-commercial-advanced-log
/usr/bin/innobackupex version 2.4.5 based on MySQL server 5.7.13 Linux (x86_64) (revision id: e41c0be)
xtrabackup: uses posix_fadvise().
xtrabackup: cd to /var/lib/mysql/
xtrabackup: open files limit requested 0, set to 1024
xtrabackup: using the following InnoDB configuration:
xtrabackup: innodb_data_home_dir = .
xtrabackup: innodb_data_file_path = ibdata1:12M:autoextend
xtrabackup: innodb_log_group_home_dir = ./
xtrabackup: innodb_log_files_in_group = 2
xtrabackup: innodb_log_file_size = 50331648
This error occurs because the perl-Digest-MD5 component is not installed when Xtrabackup 2.4.5 is installed. Percona official information does not include the latest Percona XtraBackup 2.4 Documents, only Percona XtraBackup 2.2 Documentation, Release 2.2.13. This document does not require installation of components. I only installed the following components.
[root@DB-Server ~]# yum install cmake gcc gcc-c++ libaio libaio-devel automake autoconf bzr \
bison libtool ncurses5-devel
[root@DB-Server ~]# yum -y install perl perl-devel perl-Time-HiRes perl-DBD-MySQL
After installing the perl-Digest-MD5, the problem can be solved.
[root@DB-Server ~]# yum -y install perl-Digest-MD5