Linux命令-按照与使用 (7) 安装perl-Digest-MD5组件,报错:Can't locate Digest/MD5.pm
报错:Can't locate Digest/MD5.pm
报错:
[root@localhost mysql]# innobackupex --decompress --remove-original /var/lib/mysql
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 /usr/bin/innobackupex line 947.
BEGIN failed--compilation aborted at /usr/bin/innobackupex line 947.
[root@localhost mysql]#
解决方案:XtraBackup备份出现”Can’t locate Digest-MD5.pm in @INC” https://www.ycbbs.vip/?p=13405
出现这个错误是因为安装Xtrabackup 2.4.5时,没有安装 perl-Digest-MD5组件。Percona官方文档里面介绍了使用yum、apt等安装方式,没有详细介绍使用rpm安装方式。这个文档里并没有要求安装组件perl-Digest-MD5。而我只安装了下面一些组件。
[root@DB-Server ~]# yum -y 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
安装了perl-Digest-MD5后,问题即可解决。
[root@DB-Server ~]# yum -y install perl-Digest-MD5