首页 > 代码库 > mysqlhotcopy 运行报错解决方案

mysqlhotcopy 运行报错解决方案

[root@localhost bin]# ./mysqlhotcopy 
Can‘t locate Data/Dumper.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 ./mysqlhotcopy line 22.
BEGIN failed--compilation aborted at ./mysqlhotcopy line 22.

yum install  perl-devel perl-DBD-mysql -y

缺少这2个相关包,

安装之后基本上就可以了,

如果还是报错,再装下面这个应用

wget http://www.cpan.org/modules/by-module/Data/Data-Dumper-2.154.tar.gztar zxvf Data-Dumper-2.154.tar.gzcd Data-Dumper-2.154perl Makefile.PL makemake install

mysqlhotcopy 运行报错解决方案