<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>UseStrict Consulting &#187; parse</title>
	<atom:link href="http://usestrict.net/tag/parse/feed/" rel="self" type="application/rss+xml" />
	<link>http://usestrict.net</link>
	<description>Professional IT Solutions &#38; Training</description>
	<lastBuildDate>Sat, 12 May 2012 14:25:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Perl: Installing MQSeries CPAN module on Windows XP</title>
		<link>http://usestrict.net/2009/01/perl-installing-mqseries-module-on-windows-xp/</link>
		<comments>http://usestrict.net/2009/01/perl-installing-mqseries-module-on-windows-xp/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 13:35:34 +0000</pubDate>
		<dc:creator>vinny</dc:creator>
				<category><![CDATA[MQseries]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[c program]]></category>
		<category><![CDATA[chars]]></category>
		<category><![CDATA[cmd]]></category>
		<category><![CDATA[CPAN]]></category>
		<category><![CDATA[cpan module]]></category>
		<category><![CDATA[crimson editor]]></category>
		<category><![CDATA[environment variables]]></category>
		<category><![CDATA[file names]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[ibm websphere mq]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[lib directory]]></category>
		<category><![CDATA[microsoft visual c]]></category>
		<category><![CDATA[microsoft visual studio]]></category>
		<category><![CDATA[MS Visual Studio]]></category>
		<category><![CDATA[new computer]]></category>
		<category><![CDATA[notepad]]></category>
		<category><![CDATA[parse]]></category>
		<category><![CDATA[piece of cake]]></category>
		<category><![CDATA[right tools]]></category>
		<category><![CDATA[step 3]]></category>
		<category><![CDATA[studio 9]]></category>
		<category><![CDATA[trial version]]></category>
		<category><![CDATA[visual studio tools]]></category>
		<category><![CDATA[Windows XP]]></category>

		<guid isPermaLink="false">http://usestrict.net/?p=212</guid>
		<description><![CDATA[How to easily install CPAN's MQSeries under Windows XP.]]></description>
			<content:encoded><![CDATA[<p>Installing MQSeries module on Windows XP is a piece of cake, as long as you get the right tools before you even try.</p>
<p><strong>Update: July 2, 2009</strong> I had to install the module on a new computer running Windows XP and it looks like I had missed a few steps in the original how-to below. It&#8217;s been updated with the manual editing steps. From step 3 down, it&#8217;s all new.</p>
<p><strong>This is what you need:</strong></p>
<ol>
<li>MQSeries installed (get the 90-day trial version <a href="http://www.ibm.com/developerworks/downloads/ws/wmq/" target="_blank">here</a>. You will need to register, but there&#8217;s no charge for that)</li>
<li>Microsoft Visual C++ (it&#8217;s free, and you can get it <a href="http://www.microsoft.com/express/download/default.aspx" target="_blank">here</a>)</li>
<li>Perl (I use <a href="http://www.activestate.com" target="_blank">ActiveState</a>)</li>
</ol>
<p><strong>Steps to get it installed:</strong></p>
<ol>
<li>Open a command prompt (Start-&gt;Run-&gt;cmd.exe)</li>
<li><strong>(Extremely important!!)</strong>Set up your build environment by running <strong><em>vcvarsall.bat</em></strong>. Mine is under <strong><em>C:Program FilesMicrosoft Visual Studio 9.0VC<br />
</em></strong>An alternative to this step is to open a <strong>Visual Studio 2008 Command Prompt</strong> (Start-&gt;All Programs-&gt;Microsoft C++ 2008 Express Edition-&gt;Visual Studio Tools-&gt;Visual Studio 2008 Command Prompt)</li>
<li>Make sure your environment variables are set with MQ data: INCLUDE=pathtotoolscinclude directory, LIB=pathtotoolslib directory (typing <code>set</code> will show you your env vars)</li>
<li>Install pre-requisite Params::Validate by running <em><strong>perl -MCPAN -e &#8220;install Params::Validate&#8221;</strong></em>
<li>Download MQSeries manually by running <em><strong>perl -MCPAN -e &#8220;get MQSeries&#8221;</strong></em></li>
<li>cd into the directory where you have your cpan (mine is c:Perlcpanbuild) and enter MQSeries-x.xx-* (where * is a series of random chars if you&#8217;re using the latest CPAN)</li>
<li>With a decent text editor (I&#8217;m using Notepad++ and also like Crimson Editor and Programmer&#8217;s Notepad 2), edit CONFIG file: uncomment MQMTOP = &#8230; and replace the path with the path to your MQ Tools directory. It&#8217;s OK to use long directory and file names (e.g c:Program FilesIBMWebsphere MQTools)
<li>Now cd into the <strong>utils</strong> directory, open <strong>parse_headers</strong> file and comment out or delete the line near the top where it says &#8220;my $include = &#8216;/opt/mqm/inc&#8217;;&#8221;. The reason for this is that <strong>my</strong> overwrites the <strong>$include</strong> variable previously populated by <strong>parse_config</strong> file.
<li>Save your changes and in the base directory for the MQSeries build, run <strong>perl Makefile.PL</strong>. It might complain about some libs not being found, but that wasn&#8217;t a show stopper for me.
<li>Run <strong>nmake</strong>. It came with your MS Visual C++ install and should be in your PATH.
<li>Run <strong>nmake test</strong>. It&#8217;ll fail, since you didn&#8217;t set any valid data in the CONFIG file. If you have any valid data such as QM and Queues to test it with, go ahead and set them in the CONFIG file and run <strong>nmake test</strong> again. If not, that&#8217;s OK.
<li>If <strong>nmake test</strong> was the only place where it failed, then you&#8217;re good to run <strong>nmake install</strong>.
</ol>
<p>That&#8217;s it &#8211; Perl MQSeries module should now be installed.</p>
]]></content:encoded>
			<wfw:commentRss>http://usestrict.net/2009/01/perl-installing-mqseries-module-on-windows-xp/feed/</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
	</channel>
</rss>

