I am certainly not a knowledgeable Perl person, however I recently ran into the error Can’t locate MHA/MasterMonitor.pm on Red Hat 6.x. I have installed MySQL MHA on various systems before without any issues.
$ masterha_manager -version Can't locate MHA/MasterMonitor.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/masterha_manager line 26. BEGIN failed--compilation aborted at /usr/bin/masterha_manager line 26.
The issue was that MySQL MHA is not installed in any of the acceptable default paths for this disto default installation.
$ find / -type d -name MHA /usr/lib/perl5/vendor_perl/MHA
The fix was simple on this OS, but I expect there is a correct Perl approach?
ln -s /usr/lib/perl5/vendor_perl/MHA /usr/lib64/perl5/vendor_perl/
$ cat /etc/*release Red Hat Enterprise Linux Server release 6.3 (Santiago) Red Hat Enterprise Linux Server release 6.3 (Santiago)