FATAL ERROR: please install the following Perl
modules before executing ./scripts/mysql_install_db:
Data::Dumper
Recently when I tried to install percona 5.6 MySQL on
a Amazon server, I was thrown with the below error, 
[root@localhost mysql]# ./scripts/mysql_install_db --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql --datadir=/var/lib/mysql --user=mysql
FATAL ERROR: please install the following Perl modules before executing ./scripts/mysql_install_db:
Data::Dumper
[root@localhost mysql]#
Its due to the perl data dumper file missing. In order to solve the above issue we need to install
the missing dependencies as below,
yum install 'perl(Data::Dumper)'
[root@localhost]#
yum install 'perl(Data::Dumper)'
Loaded
plugins: priorities, update-motd, upgrade-helper
amzn-main/latest             | 2.1 kB     00:00
amzn-updates/latest          | 2.3 kB     00:00
Resolving
Dependencies
-->
Running transaction check
--->
Package perl-Data-Dumper.x86_64 0:2.145-3.5.amzn1 will be installed
-->
Finished Dependency Resolution
Dependencies
Resolved
===========================================================
 Package                         Arch   
            Version               Repository                  Size
===========================================================
Installing:
 perl-Data-Dumper     x86_64         2.145-3.5.amzn1          amzn-main         49 k
Transaction
Summary
===========================================================
Install  1 Package
Total
download size: 49 k
Installed
size: 93 k
Is
this ok [y/d/N]: y
Downloading
packages:
perl-Data-Dumper-2.145-3.5.amzn1.x86_64.rpm                     |  49 kB     00:00
Running
transaction check
Running
transaction test
Transaction
test succeeded
Running
transaction
 Installing :
perl-Data-Dumper-2.145-3.5.amzn1.x86_64                              1/1
  Verifying 
: perl-Data-Dumper-2.145-3.5.amzn1.x86_64                            1/1
Installed:
  perl-Data-Dumper.x86_64 0:2.145-3.5.amzn1
Complete!
After
successful installation, I was able to install Percona MySQL without any error.
 
