lestrrat / mysql-master-ha

Automatically exported from code.google.com/p/mysql-master-ha
0 stars 0 forks source link

Can't locate MHA/SSHCheck.pm in @INC #30

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  Trying to run masterha_check_ssh --conf=/etc/app1.cnf
2.
3.

What is the expected output? What do you see instead?
I was expecting to get back some data like what is on this page:  
http://code.google.com/p/mysql-master-ha/wiki/Requirements#SSH_public_key_authen
tication

What version of the product are you using? On what operating system?
mha4mysql-node-0.53-0.el6
mha4mysql-manager-0.53-0.el6
on CentOS6

Please provide any additional information below.

Original issue reported on code.google.com by jdgonza...@jdandrachel.com on 25 Jun 2012 at 1:48

GoogleCodeExporter commented 8 years ago
Looks like I installed the CentOS6 version on a CentOS5 box.  Reinstalled the 
correct version and I'm getting the expected output.

Original comment by jdgonza...@jdandrachel.com on 25 Jun 2012 at 2:05

GoogleCodeExporter commented 8 years ago
Hi jdgonza

I am having the same kind of error given below. However I donot what is the 
cause of it. I tried both of these version given below.
mha4mysql-manager-0.52-0.noarch.rpm  
mha4mysql-manager-0.53-0.noarch.rpm
mha4mysql-node-0.52-0.noarch.rpm 
mha4mysql-node-0.53-0.noarch.rpm
[root@lb01 p]# masterha_check_ssh --conf=/etc/app1.cnf
Can't locate MHA/SSHCheck.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_check_ssh line 25.
BEGIN failed--compilation aborted at /usr/bin/masterha_check_ssh line 25.

My OS details are:
Linux version 2.6.32-220.23.1.el6.x86_64 (gcc version 4.4.6 20110731 (Red Hat 
4.4.6-3) (GCC) )

Do you know what might be causing this.

Original comment by khanomai...@gmail.com on 3 Jul 2012 at 10:49

GoogleCodeExporter commented 8 years ago
This looks to be an issue to do with either compilation architecture. The 
SSHCheck.pm exists in the /usr/lib/perl5/vendor_perl/MHA directory structure, 
not the lib64 directiory structure..  

Try adding a symlink from /usr/lib64/perl5/vendor_perl/MHA to 
/usr/lib/perl5/vendor_perl/MHA.

Worked for me at least

Original comment by andrew.h...@projectsapphire.com on 6 Sep 2012 at 10:55

GoogleCodeExporter commented 8 years ago
the symlink solution also worked for me

Original comment by ste...@shots.com on 9 Mar 2016 at 2:36