Subject: | Version 1.43 fails to build on 64 bit windows server without tweak |
Date: | Mon, 9 Sep 2013 15:39:15 -0400 |
To: | bug-MQSeries [...] rt.cpan.org |
From: | Matthew.Persico [...] lazard.com |
We installed the latest version (7.51) of the MQSeries software on Windows
Server 2008 R2 SP1, 64-bit architecture at the nonstandard location
E:/Mqm.
Our build failed.
Why?
In util/parse config, the registry key location code is:
my $CurrentVersion =
"LMachine/SOFTWARE/IBM/MQSeries/CurrentVersion/";
my ($mqmdir) = (
$Registry->{"$CurrentVersion/FilePath"} ||
$Registry->{"$CurrentVersion/WorkPath"} ||
"C:/Mqm"
);
$mqmtop = "$mqmdir/Tools";
The MQSeries module build fails when it cannot find the C:/Mqm/Tools
directory.
On my machine, the registry keys in question are installed elsewhere. I
belive this is by design; search the net for Wow6432Node.
This code fixes the issue:
my $CurrentVersion64 =
"LMachine/SOFTWARE/Wow6432Node/IBM/MQSeries/CurrentVersion/";
my $CurrentVersion =
"LMachine/SOFTWARE/IBM/MQSeries/CurrentVersion/";
my ($mqmdir) = (
$Registry->{"$CurrentVersion64/FilePath"} ||
$Registry->{"$CurrentVersion64/WorkPath"} ||
$Registry->{"$CurrentVersion/FilePath"} ||
$Registry->{"$CurrentVersion/WorkPath"} ||
"C:/Mqm"
);
$mqmtop = "$mqmdir/Tools";
--
Matthew O. Persico
30 Rockefeller Plaza
New York, NY 10112