ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » How do I get PERL and MQ working on my Win2K machine ?

Post new topic  Reply to topic
 How do I get PERL and MQ working on my Win2K machine ? « View previous topic :: View next topic » 
Author Message
rocket84
PostPosted: Thu Jul 18, 2002 7:26 pm    Post subject: How do I get PERL and MQ working on my Win2K machine ? Reply with quote

Newbie

Joined: 18 Jul 2002
Posts: 4
Location: Texas

I am familiar / experienced with MQSeries. I have downloaded a "PERL runtime" from the ActivePerl web site. I have tested a basic PERL script with success. I am now at a point where I am not sure what to do ... the mqseries support pac for PERL points to the CPAN site. I was hoping for some detailed instructions, but the readme is too high level for me or I am just missing the boat. I am requesting some detailed level help.

Also, ActivePERL provides a PPM function for importing packages (I think) ... is there an MQSeries package somewhere that I can just import ? Any help is appreciated.



Thanks, Rocket84
Back to top
View user's profile Send private message
bduncan
PostPosted: Thu Jul 18, 2002 10:20 pm    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

I haven't installed the Perl MQSeries API on windows, although I've done it many times on Unix. From what I gathered at the CPAN site, this module does work on various flavors of Windows. However, what you download from CPAN is going to be the source code, which you'll have to compile, just like on Unix...
_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
woodoo2k
PostPosted: Fri Aug 05, 2005 1:03 am    Post subject: Reply with quote

Apprentice

Joined: 07 Feb 2005
Posts: 28
Location: USA

I think I know part of the solution. You can download the MQSeries Module from the following link.
http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg24000208&loc=en_US&cs=utf-8&lang=en

You have to have a C compiler on your Win2K m/c in order to compile and install the package on your m/c.
I am stuck at this point where the linker is throwing errors with following message.
Quote:
:
Creating library ..\blib\arch\auto\MQClient\MQSeries\MQSeries.lib and object ..\blib\arch\auto\MQClient\MQSeries\MQSeries.exp
MQSeries.obj : error LNK2001: unresolved external symbol __imp___errno
constants.obj : error LNK2001: unresolved external symbol __imp___errno
MQSeries.obj : error LNK2001: unresolved external symbol __imp__strncpy
MQSeries.obj : error LNK2001: unresolved external symbol _strcmp
constants.obj : error LNK2001: unresolved external symbol _strcmp
MQSeries.obj : error LNK2001: unresolved external symbol _memcpy
MQSeries.obj : error LNK2001: unresolved external symbol _memset
MQSeries.obj : error LNK2001: unresolved external symbol __imp__perror
MQSeries.obj : error LNK2001: unresolved external symbol _strlen
MQSeries.obj : error LNK2001: unresolved external symbol __imp__sprintf
constants.obj : error LNK2001: unresolved external symbol _strcpy
LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
..\blib\arch\auto\MQClient\MQSeries\MQSeries.dll : fatal error LNK1120: 10 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.


In case you know how to remove this link error, then do let me know as well.

Cheers !
Back to top
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Fri Aug 05, 2005 3:36 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

There isn't a PPM, that I know of.

I've built this module successfully using the free Visual C/C++ 2003 Toolkit from Microsoft. I used CPAN to fetch and extract it, and then did perl Makefile.pl
nmake
nmake test
nmake install

from the build directory.

You have to configure the lib and include variables to point to the right things.

You can either use command options or set environment variables.

On my machine, I used the environment variables, as follows:
include=C:\IBM\WebSphereMQ\tools\c\include;C:\IBM\WebSphereMQ\tools\cplus\include
lib=C:\IBM\WebSphereMQ\tools\lib

I don't know that you need cplus\include, but it can't hurt.

EDIT: Also, don't forget to edit the CONFIG file in the build directory, per it's documentation, so that nmake test will succeed.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
mrlinux
PostPosted: Sat Aug 06, 2005 7:13 pm    Post subject: Reply with quote

Grand Master

Joined: 14 Feb 2002
Posts: 1261
Location: Detroit,MI USA

Your Linker errors are standard C lib calls, so somewhere your standard C libs are not being included correctly


I was able to compile the MQSeries Module from cpan.org with Visual C/C++ version and the .net version
_________________
Jeff

IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » How do I get PERL and MQ working on my Win2K machine ?
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.