初始化mysql数据库时出现下面错误,原因是缺少Data:dumper模块[root@bogon mysql]# ./scripts/mysql_install_db --user=mysql

FATAL ERROR: please install the following Perl modules before executing ./scripts/mysql_install_db:

Data::Dumper

解决方法 :安装autoconf库

命令:yum -y install autoconf   //此包安装时会安装Data:Dumper模块[root@bogon mysql]# yum -y install autoconf

已加载插件:fastestmirror

Loading mirror speeds from cached hostfile

* base: mirror.bit.edu.cn

* extras: mirror.bit.edu.cn

* updates: mirror.bit.edu.cn

正在解决依赖关系

--> 正在检查事务

---> 软件包 autoconf.noarch.0.2.69-11.el7 将被 安装

--> 正在处理依赖关系 m4 >= 1.4.14,它被软件包 autoconf-2.69-11.el7.noarch 需要

--> 正在处理依赖关系 perl(Data::Dumper),它被软件包 autoconf-2.69-11.el7.noarch 需要

--> 正在检查事务

---> 软件包 m4.x86_64.0.1.4.16-10.el7 将被 安装

---> 软件包 perl-Data-Dumper.x86_64.0.2.145-3.el7 将被 安装

--> 解决依赖关系完成

依赖关系解决

================================================================================================================================

Package                             架构                      版本                               源                       大小

================================================================================================================================

正在安装:

autoconf                            noarch                    2.69-11.el7                        base                    701 k

为依赖而安装:

m4                                  x86_64                    1.4.16-10.el7                      base                    256 k

perl-Data-Dumper                    x86_64                    2.145-3.el7                        base                     47 k

事务概要

================================================================================================================================

安装  1 软件包 (+2 依赖软件包)

总下载量:1.0 M

安装大小:2.8 M

Downloading packages:

(1/3): perl-Data-Dumper-2.145-3.el7.x86_64.rpm                                                           |  47 kB  00:00:00

(2/3): autoconf-2.69-11.el7.noarch.rpm                                                                   | 701 kB  00:00:00

(3/3): m4-1.4.16-10.el7.x86_64.rpm                                                                       | 256 kB  00:00:02

--------------------------------------------------------------------------------------------------------------------------------

总计                                                                                            455 kB/s | 1.0 MB  00:00:02

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

正在安装    : m4-1.4.16-10.el7.x86_64                                                                                     1/3

正在安装    : perl-Data-Dumper-2.145-3.el7.x86_64                                                                         2/3

正在安装    : autoconf-2.69-11.el7.noarch                                                                                 3/3

验证中      : perl-Data-Dumper-2.145-3.el7.x86_64                                                                         1/3

验证中      : m4-1.4.16-10.el7.x86_64                                                                                     2/3

验证中      : autoconf-2.69-11.el7.noarch                                                                                 3/3

已安装:

autoconf.noarch 0:2.69-11.el7

作为依赖被安装:

m4.x86_64 0:1.4.16-10.el7                                perl-Data-Dumper.x86_64 0:2.145-3.el7

完毕!

安装完autoconf库,再运行./scripts/mysql_install_db --user=mysql,问题消失!!!

------------------------------------------------------------

下面再备上源码安装autoconf[root@bogon liuzhen]# tar -zxvf autoconf-2.69.tar.gz

[root@bogon liuzhen]# cd autoconf-2.69

[root@bogon autoconf-2.69]# ./configure

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for a thread-safe mkdir -p... /usr/bin/mkdir -p

checking for gawk... gawk

checking whether make sets $(MAKE)... yes

checking build system type... x86_64-unknown-linux-gnu

checking host system type... x86_64-unknown-linux-gnu

configure: autobuild project... GNU Autoconf

configure: autobuild revision... 2.69

configure: autobuild hostname... bogon

configure: autobuild timestamp... 20170115T063135Z

checking whether /bin/sh -n is known to work... yes

checking for characters that cannot appear in file names... none

checking whether directories can have trailing spaces... yes

checking for expr... /usr/bin/expr

checking for GNU M4 that supports accurate traces... configure: error: no acceptable m4 could be found in $PATH.

GNU M4 1.4.6 or later is required; 1.4.16 or newer is recommended.

GNU M4 1.4.15 uses a buggy replacement strstr on some systems.

Glibc 2.9 - 2.12 and GNU M4 1.4.11 - 1.4.15 have another strstr bug.

执行./configure时出现下面错误:

checking for GNU M4 that supports accurate traces... configure: error: no acceptable m4 could be found in $PATH.

GNU M4 1.4.6 or later is required; 1.4.16 or newer is recommended.

原因是需要安装M4

打开m4下载地址:[root@bogon liuzhen]# tar -zxvf m4-1.4.18.tar.gz

[root@bogon liuzhen]# cd m4-1.4.18

[root@bogon m4-1.4.18]# ./configure

[root@bogon m4-1.4.18]# make

[root@bogon m4-1.4.18]# make install

m4安装完成之后再次执行再次切换到autoconf目录继续安装[root@bogon liuzhen]# cd autoconf-2.69

[root@bogon autoconf-2.69]# ./configure

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for a thread-safe mkdir -p... /usr/bin/mkdir -p

checking for gawk... gawk

checking whether make sets $(MAKE)... yes

checking build system type... x86_64-unknown-linux-gnu

checking host system type... x86_64-unknown-linux-gnu

configure: autobuild project... GNU Autoconf

configure: autobuild revision... 2.69

configure: autobuild hostname... bogon

configure: autobuild timestamp... 20170115T064711Z

checking whether /bin/sh -n is known to work... yes

checking for characters that cannot appear in file names... none

checking whether directories can have trailing spaces... yes

checking for expr... /usr/bin/expr

checking for GNU M4 that supports accurate traces... /usr/local/bin/m4

checking whether /usr/local/bin/m4 accepts --gnu... yes

checking how m4 supports trace files... --debugfile

checking for perl... no

configure: error: perl is not found

发现了新的错误:

checking for perl... no

configure: error: perl is not found

是因为没有安装perl

可以快速yum安装,也可以向下看源码安装[root@bogon liuzhen]# yum -y install perl perl-devel[root@bogon liuzhen]# tar -zxvf perl-5.24.0.tar.gz

[root@bogon liuzhen]# cd perl-5.24.0

[root@bogon perl-5.24.0]# ./Configure

[root@bogon perl-5.24.0]# make

[root@bogon perl-5.24.0]# make install

perl安装完成之后再次执行再次切换到autoconf目录继续安装[root@bogon liuzhen]# cd autoconf-2.69

[root@bogon autoconf-2.69]# ./configure

[root@bogon autoconf-2.69]# make

[root@bogon autoconf-2.69]# make install

至此autoconf通过源码方式安装完成

mysql data::dumper_初始化mysql数据库提示缺少Data:dumper模块解决方法相关推荐

  1. linux 安装程序丢失链接动态库,Linux安装软件过程中提示缺少动态链接库.so的解决方法...

    Linux在安装软件的时候有时会出现错误,提示缺少动态链接库.so,该问题是由什么原因导致的呢? 情况分析: 1.缺少动态连接库.so-cannot open shared object file:N ...

  2. 登陆SQL Server 2000数据库提示超时已过期的解决方法

    登陆SQL Server 2000数据库提示超时已过期的解决方法 参考文章: (1)登陆SQL Server 2000数据库提示超时已过期的解决方法 (2)https://www.cnblogs.co ...

  3. WAMP安装提示缺少 msvcr100.dll文件解决方法

    WAMP安装提示缺少wamp msvcr100.dll文件解决方法 因为wamp基于vs c++2010开发,需要提前安装这个组件才可以正常运行 微软官方组件下载地址: 32位:http://www. ...

  4. linux wptmp文件分析,wordpress上传图片提示“缺少临时文件夹”的解决方法

    摘要:使用wordpress编辑器上传图片时出现了"缺少临时文件夹"的提示,该提示通常是由于服务器php配置的原因,如果之前上... 使用wordpress编辑器上传图片时出现了& ...

  5. 64位Windows 8 运行Trial-Reset,但是提示缺少“MSCOMCTL.OCX”的解决方法

    本文包含以下内容: 一.手动注册MSCOMCTL.OCX 二.自动注册MSCOMCTL.OCX 三.常见的**.OCX,**.DLL等控件注册方法 64位Windows 8 运行Trial-Reset ...

  6. sql2000不显示服务器失败,安装sql server 2000数据库提示程序配置服务器失败.(解决方法)...

    SQL安装失败 ,提示: 安装程序配置服务器失败.参考服务器错误日志和C:\WINDOWS\sqlstp.log 然后无法运行服务器. sqlstp.log提示: [Microsoft][ODBC S ...

  7. 应用软件运行提示缺少*.dll文件的解决方法

    在运行应用软件时可能会遇到各种情况,如在打开软件的执行程序时提示缺少*.dll的文件,导致应用程序无法正常运行,根据已解决的案列,可采用下载新的*.dll文件,然后再放置到应用程序的安装目录中,问题基 ...

  8. PHP如何取消提醒缺少运行库,Xampp2016打开提示缺少运行库的解决方法(亲测可行)...

    今天陌小雨把本地搭建 WordPress 环境的 xampp 升级到了 Xampp2016,XAMPP 2016 支持 PHP7.0,新增 PHP5.3.PHP5.6 和 PHP7.0 一键切换. P ...

  9. win7 dll怎么在xp运行_win7电脑安装软件提示缺少vcruntime140.dll如何解决

    最近有位win7系统用户使用电脑安装office2016的时候,系统却提示"缺少vcruntime140.dll",这导致了office2016无法正常安装,用户不知道怎么解决,为 ...

  10. 计算机显示丢失d3dcompiler,无法启动此程序提示缺少d3dcompiler文件怎么解决

    有用户说他在打开某个程序时,系统却提示说无法启动此程序提示缺少d3dcompiler文件的情况,这可能是在系统更新时出现错误导致的,那么无法启动此程序提示缺少d3dcompiler文件怎么解决呢,很简 ...

最新文章

  1. ssm框架mysql配置_ssm框架使用详解配置两个数据源
  2. 绿色信托任重道远 应建立补偿机制?
  3. 报告视频录制:腾讯会议录屏+人像画中画特效
  4. mysql 5.6 rpm 安装_mysql 5.6 rpm 包安装步骤需要注意的地方
  5. Linux零基础初级教程
  6. 点到点链路上的OSPF协议
  7. Vue.js 运行机制全局概览
  8. 只读数据文件损坏恢复
  9. Could not resolve XML resource [null] with public ID [null], system ID [classes/ajax/dwr_web.xml]
  10. 在英特尔® 架构平台上开发和优化基于 NDK 的 Android 游戏应用
  11. java中文乱码decode_Java WEB开发中的中文乱码问题解决
  12. IEEE会议论文模板下载
  13. 7-2 前n项的和2 (10 分)
  14. 如何选购电风扇,一本电风扇选购攻略都在这里!
  15. 图片处理--羽化特效
  16. PostgreSQL安装、验证安装、pgAdmin初步简单使用
  17. python中文件路径怎么写?
  18. Inwook,Kong
  19. 《软件开发与创新:ThoughtWorks文集:续集》
  20. 一文教你Kali信息收集

热门文章

  1. wordpress安装教程_如何安装WordPress –完整的WordPress安装教程
  2. 手机ROM,RAM作假显示
  3. selenium+python自动化84-chrome手机wap模式(登录淘宝页面)
  4. 抖音作品实时监控采集数据,抖音达人下关键词数据抓取
  5. PhysX两轮载具简单实现
  6. 史上最全因果推断合集-uplift
  7. hp m281_惠普m281fdw驱动下载-hpm281fdw打印机驱动v44.3 官方版 - 极光下载站
  8. PSC-Net: Learning Part Spatial Co-occurrence for Occluded Pedestrian Detection 用于遮挡行人检测的部分空间共现网络 翻译
  9. OutLook添加网易邮箱,QQ邮箱
  10. 数据安全对物联网越来越重要