Tuesday, April 29, 2014

Percona 5.6.x Installation Error: scripts/mysql_install_db: /usr/bin/perl: bad interpreter: No such file or directory

If you get an below error while installing Percona 5.6.x  tarball file.

./scripts/mysql_install_db --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql/ --datadir=/var/lib/mysqldata/ --user=mysql
-bash: ./scripts/mysql_install_db: /usr/bin/perl: bad interpreter: No such file or directory

Solution:

Install perl perl-devel

#yum install perl perl-devel

Again if you try it, you may get again an error like below,

./scripts/mysql_install_db --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql/ --datadir=/var/lib/mysqldata/ --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.

Solution:

#yum install 'perl(Data::Dumper)'

Then install it.This problem because of Perl.Perl is required for installation.  -:)


No comments:

Post a Comment