Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Initialization of mysql database prompt missing Data:dumper module solution

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

The following error occurred while initializing the mysql database due to the missing Data:dumper module

[root@bogon mysql] # / scripts/mysql_install_db-- user=mysqlFATAL ERROR: please install the following Perl modules before executing. / scripts/mysql_install_db:Data::Dumper

Solution: install the autoconftion library

Command: yum-y install autoconf / / the Data:Dumper module will be installed when this package is installed

[root@bogon mysql] # yum-y install autoconf loaded plug-in: fastestmirrorLoading mirror speeds from cached hostfile * base: mirror.bit.edu.cn * extras: mirror.bit.edu.cn * updates: mirror.bit.edu.cn is resolving dependencies-- > checking transactions-- > package autoconf.noarch.0.2.69-11.el7 will be installed-- > processing dependencies M4 > = 1.4.14 It is required by the package autoconf-2.69-11.el7.noarch-- > processing dependency perl (Data::Dumper) It is required by the package autoconf-2.69-11.el7.noarch-- > checking transactions-- > package m4.x86_64.0.1.4.16-10.el7 will be installed-- > package perl-Data-Dumper.x86_64.0.2.145-3.el7 will be installed-- > resolve dependencies complete dependency resolution = Package Schema version source size = installing: autoconf noarch 2.69-11.el7 base 701k install for dependency: M4 X86 * 64 1.4.16-10.el7 base 256k perl-Data-Dumper x86 * 64 2.145-3.el7 base 47k transaction summary = install 1 soft Total downloads of packages (+ 2 dependent packages): 1.0m installation size: 2.8m MDownloading packages: (1ap3): perl-Data-Dumper-2.145-3.el7.x86_64.rpm | 47 kB 00:00:00 (2mp 3): autoconf-2.69-11.el7.noarch.rpm | | 701 kB 00:00:00 (3amp 3): M4-1.4.16-10.el7.x86_64.rpm | 256 kB 00:00:02-| -Total 455 kB/s | 1.0 MB 00:00:02 Running transaction checkRunning transaction testTransaction test succeededRunning transaction is being installed: M4-1.4.16-10.el7.x86_64 1 3.el7.x86_64 3 is being installed: perl-Data-Dumper-2.145-3.el7.x86_64 2 Acer 3 is being installed: autoconf-2.69-11.el7.noarch Perl-Data-Dumper-2.145-3.el7.x86_64 1-10.el7.x86_64: M4-1.4.16-verification 2 11.el7.noarch 3 verification: autoconf-2.69-11.el7.noarch 3 has been installed: autoconf.noarch 0pur2.69-11.el7 Installed as a dependency: m4.x86_64 0VOR 1.4.16-10.el7 perl-Data-Dumper.x86_64 0RU 2.145-3.el7 over!

After installing the autoconf library, run. / scripts/mysql_install_db-- user=mysql, the problem disappears!

Next, install autoconf with source code.

Download address: http://ftp.gnu.org/gnu/autoconf/

What I choose here is version 2.69 to download http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz.

[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-cchecking whether build environment is sane... Yeschecking for a thread-safe mkdir-p. / usr/bin/mkdir-pchecking for gawk... Gawkchecking whether make sets $(MAKE)... Yeschecking build system type... X86_64-unknown-linux-gnuchecking host system type... X86_64-unknown-linux-gnuconfigure: autobuild project... GNU Autoconfconfigure: autobuild revision... 2.69configure: autobuild hostname... Bogonconfigure: autobuild timestamp... 20170115T063135Zchecking whether / bin/sh-n is known to work... Yeschecking for characters that cannot appear in file names... Nonechecking whether directories can have trailing spaces... Yeschecking for expr... / usr/bin/exprchecking 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.

The following error occurred while executing. / 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.

The reason is that M4 needs to be installed

Open the M4 download address:

Http://ftp.gnu.org/gnu/m4/

What I download here is the latest version of http://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz.

[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 after the installation is complete, execute again and change to the autoconf directory to continue the installation.

[root@bogon liuzhen] # cd autoconf-2.69 [root@bogon autoconf-2.69] #. / configure checking for a BSD-compatible install... / usr/bin/install-cchecking whether build environment is sane... Yeschecking for a thread-safe mkdir-p. / usr/bin/mkdir-pchecking for gawk... Gawkchecking whether make sets $(MAKE)... Yeschecking build system type... X86_64-unknown-linux-gnuchecking host system type... X86_64-unknown-linux-gnuconfigure: autobuild project... GNU Autoconfconfigure: autobuild revision... 2.69configure: autobuild hostname... Bogonconfigure: autobuild timestamp... 20170115T064711Zchecking whether / bin/sh-n is known to work... Yeschecking for characters that cannot appear in file names... Nonechecking whether directories can have trailing spaces... Yeschecking for expr... / usr/bin/exprchecking for GNU M4 that supports accurate traces... / usr/local/bin/m4checking whether / usr/local/bin/m4 accepts-- gnu... Yeschecking how m4 supports trace files... -- debugfilechecking for perl... Noconfigure: error: perl is not found

A new error has been found:

Checking for perl... No

Configure: error: perl is not found

Because perl is not installed

You can install yum quickly, or look down at the source code installation.

[root@bogon liuzhen] # yum-y install perl perl-devel

Download address: https://www.perl.org/get.html

Source code packet address: http://www.cpan.org/src/5.0/perl-5.24.0.tar.gz

[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

After the perl installation is complete, execute again and change to the autoconf directory again to continue the installation.

[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

So far, autoconf has been installed through source code.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report