首页 > Linux系统管理 > centos7初始化mysql的时候报Can’t locate Data/Dumper.pm in @INC (@INC contains: /usr/local/lib64/perl5
2019
01-15

centos7初始化mysql的时候报Can’t locate Data/Dumper.pm in @INC (@INC contains: /usr/local/lib64/perl5

scripts/mysql_install_db --defaults-file=/usr/local/mysql/etc/my.cnf --user=mysql 
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 scripts/mysql_install_db line 42.
BEGIN failed--compilation aborted at scripts/mysql_install_db line 42.
 
#yum install 'perl(Data::Dumper)'

安装dumper后就可以了

最后编辑:
作者:saunix
大型互联网公司linux系统运维攻城狮,专门担当消防员