Dan,

I have successfully done this on Windows NT and 2000 using VC++ and later
Visual Studio.NET's C compiler.  Change "make" to "nmake" and it should
work.

Assuming you have the same version of Perl across several Windows machines,
once you build the module you can install it on other servers/workstations
just by copying the files over.  The files to copy would be:

<perl install>/site/lib/MQSeries.pm
<perl install>/site/lib/MQClient (Folder & contents)
<perl install>/site/lib/MQSeries (Folder & contents)
<perl install>/site/lib/MQServer (Folder & contents)

Plus the ones everyone forgets...

<perl install>/site/lib/auto/MQSeries (Folder & contents)
<perl install>/site/lib/auto/MQServer (Folder & contents)

The "build" is a series of steps that configure the module (perl
Makefile.pl); extract, compile and install the module in a staging directory
(nmake); test the success of the build (nmake test); and finally, install
the module where Perl will find it at run-time (nmake install).  The reason
all this is necessary is that there are hundreds of possible combinations of
compatible Perl versions and compatible MQSeries libraries.  The nmake step
builds the glue files that connect your version of Perl to your installed
version of MQ by compiling the C header files (cmqc.h, etc.).  The compiler
is required because you are crossing over from Perl to native C calls.

Since building the module on Windows is so pesky, we invested in the Active
State's Perl Dev Kit.  This lets us compile our scripts into stand-alone
programs that can be distributed to servers without having to install Perl,
build the module, etc.

-- T.Rob


-----Original Message-----
From: Daniel Graper [mailto:[EMAIL PROTECTED]
Sent: Friday, December 05, 2003 12:43 PM
To: [EMAIL PROTECTED]
Subject: Re: setting up MQ environment on windows for Perl


T.Rob:
Please forgive my 'swiss cheese' knowledge of this.  The latest version
would be the 'MQSeries-1.21.tar.gz' ?  I have this and unzipped it.
When I try to follow the install instructions, they say:

"This module installs much like anything else available on CPAN.

  perl Makefile.PL
  make
  make test
  make install"

I ran the first Perl step but the 'make' commands come up as
unrecognized.  Some other internet colleagues has said that I need to
have Micorsoft visual C on my workstation to install.  I have the visual
studio on a laptop at home so I was going to try this tonight.

I am not clear on what a build actually is.  Is this part of the
install that takes place when you run the make commands?

Dan


>>> [EMAIL PROTECTED] 12/5/2003 12:28:39 PM >>>
Dan,

The MA89 just points to CPAN.  Hopefully, you've got the latest version
of
the Perl module from there - 1.21 I think.  I would definitely update
the
client, though.

Still, those things have little bearing on the build.  Where is the
build
failing?

-- T.Rob


-----Original Message-----
From: Daniel Graper [mailto:[EMAIL PROTECTED]
Sent: Friday, December 05, 2003 12:10 PM
To: [EMAIL PROTECTED]
Subject: Re: setting up MQ environment on windows for Perl


T.Rob:
Thanks for the feedback.  I'm using windows 2000, perl 5.8.0, MQ
client
5.2.1 and the MQ Perl pac of MA89.

Dan



Daniel John Graper
Software Engineer
Wyeth Pharmaceuticals

>>> [EMAIL PROTECTED] 12/5/2003 11:41:56 AM >>>
Dan,

To make this work, I had to set the INCLUDE and LIB environment vars
to
point to the <mq install dir>/Tools/C/Include and <mq install
dir>/Lib,
respectively.  You may need to log off and back on for these to take
effect.
When you open a DOS prompt, do a "set" command and make sure you see
the
folders listed.

Once I had my environment vars set I was able to build the module
using
nmake (from Microsoft's Visual Studio).  Even though the "nmake test"
always
failed, my programs would run correctly.

Which versions of Windows, Perl and MQSeries module are you working
with?

-- T.Rob

-----Original Message-----
From: Daniel Graper [mailto:[EMAIL PROTECTED]
Sent: Friday, December 05, 2003 11:11 AM
To: [EMAIL PROTECTED]
Subject: setting up MQ environment on windows for Perl


I need to write a Perl script to run on my windows workstation that
will
access MQ message queues.  I has dowloaded the Perl interpreter and
installed the MQ client but am having some challenges installing the
MQ
perl libraries.

Has anyone out there installed the MA89 MQ modules for windows before?

thanks,
Dan

Instructions for managing your mailing list subscription are provided
in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided
in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided
in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided
in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Reply via email to