Linux 安装MySql启动Can't locate Data/Dumper.pm in @INC

Posted 梦雨情殇

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux 安装MySql启动Can't locate Data/Dumper.pm in @INC相关的知识,希望对你有一定的参考价值。

通过RPM包CentOS7 安装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 /usr/bin/mysql_install_db line 42.

BEGIN failed--compilation aborted at /usr/bin/mysql_install_db line 42.",感觉到瞬间有种不知道不知所措,以前安装遇见过各种但是这个问题也是头一次遇见,根据提示这个应该缺失perl 的插件,大概是服务器上没有安装过这个插件,通过yum的方式来安装下插件.

yum install perl(Data::Dumper)

插件安装完成以后,记住需要把之前安装产生的目录删除,再次安装这样就顺顺利利的安装完成。

以上是关于Linux 安装MySql启动Can't locate Data/Dumper.pm in @INC的主要内容,如果未能解决你的问题,请参考以下文章

mac使用brew安装mysql报RROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp

源码安装mysql5.6x启动报错:[ERROR] Can't find messagefile '/data/mysqldata/3306/english/errmsg.sys

Can''t connect to MySQL server on localhost (10061)解决方法

Can't connect to local MySQL server through socket

Mysql问题:Can't connect to MySQL server on localhost (10061)解决方法

Can't connect to MySQL server on 'localhost' (10038)