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 API Support » nmake test failing - Installing MQ Series Perl Extension

Post new topic  Reply to topic
 nmake test failing - Installing MQ Series Perl Extension « View previous topic :: View next topic » 
Author Message
OtisFly
PostPosted: Fri Dec 02, 2005 12:08 pm    Post subject: nmake test failing - Installing MQ Series Perl Extension Reply with quote

Novice

Joined: 01 Dec 2005
Posts: 19
Location: London - UK

Hello,
I'm looking for some help, I've been struggling along for a while trying to get the Perl MQSeries package installed on Windows XP. I've been reading the info on here regarding previous issues and have got through to the point where the nmake seems to be working. The nmake test is now failing and I'm at a bit of a loss.
The results I'm seeing are:-
C:\Perl\MQSeries-1.23>nmake test TEST_VERBOSE=1

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.

C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, '..
\blib\lib', '..\blib\arch')" t\dlq.t
t\dlq....Can't load 'C:\Perl\MQSeries-1.23\blib\arch/auto/MQServer/MQSeries/MQSe
ries.dll' for module MQServer::MQSeries: load_file:The specified module could no
t be found at C:/Perl/lib/DynaLoader.pm line 230.
at C:\Perl\MQSeries-1.23\blib\lib/MQSeries.pm line 77
Compilation failed in require at C:\Perl\MQSeries-1.23\blib\lib/MQSeries.pm line
77.
BEGIN failed--compilation aborted at C:\Perl\MQSeries-1.23\blib\lib/MQSeries.pm
line 89.
Compilation failed in require at t\dlq.t line 24.
BEGIN failed--compilation aborted at t\dlq.t line 24.
t\dlq....dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t\dlq.t 2 512 1 2 200.00% 1

I've installed ActivePerl version 5.8.7.813
The MQ series package version is 1.23
I'm running Windows XP Prof SP2
I've installed Microsoft Platform SDK for W2003 and
Visual C++ 2005 Express Edition

Any ideas/suggestions would be appreciated.
Cheers
Otis
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Dec 02, 2005 12:14 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Skip the tests.

Try nmake install and see what happens.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
OtisFly
PostPosted: Fri Dec 02, 2005 12:36 pm    Post subject: Reply with quote

Novice

Joined: 01 Dec 2005
Posts: 19
Location: London - UK

Hello Jeff.
I got a popup window saying
perl.exe - Unable to Locate Component
This application has failed to start because MSVCR80.dll was not found. Re-installing the application may fix the problem
and then the following in the command window

C:\Documents and Settings\Otisfly\My Documents\Perl\Code>perl inquireq.pl WEB_O
UT WBRK_QM
Can't load 'C:/Perl/site/lib/auto/MQServer/MQSeries/MQSeries.dll' for module MQS
erver::MQSeries: load_file:The specified module could not be found at C:/Perl/li
b/DynaLoader.pm line 230.
at C:/Perl/site/lib/MQSeries.pm line 77
Compilation failed in require at C:/Perl/site/lib/MQSeries.pm line 77.
BEGIN failed--compilation aborted at C:/Perl/site/lib/MQSeries.pm line 89.
Compilation failed in require at inquireq.pl line 19.
BEGIN failed--compilation aborted at inquireq.pl line 19.

Earlier, I was having problems with the nmake, getting an error saying that the entry point could not be found in MSVCR80.dll. I checked on the Microsoft website to check what the problem was and apparently there is a nmake.exe with the SDK which is not the correct one and one with Visual C++ which is the correct one. Anyway, I changed my environment variables accordingly and the nmake completed. I then reinstalled perl and the MQ series Package and re-ran makefile.pl and nmake, and this seemed to work... and I thus moved onto the nmake test... which failed.

I guess there is still a problem with the nmake, but I'm not sure how to see where the problem is.
Any ideas?
Many Thanks
Otis
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Dec 02, 2005 1:44 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Well.

There's a note in the ActivePerl documentation about MSVCRT.DLL, but that doesn't apply to Windows XP.

This is what I did, and I didn't have any problems.

Maybe you don't have the compiler environment fully installed or your paths and include and libs properly set up or properly on the command line when you are trying to build the module.

Also your path "C:\Perl\MQSeries-1.23\" looks pretty bad. I woudln't have extracted the module there...

Try opening up a command shell that includes your C compiler enviornment variables, and then use CPAN to fetch the module. CPAN does work on Windows. Just type "cpan", and then once you've gone through the configuration process (if necessary), type "install MQSeries".

That will redownload the module, unpack it properly, and put it in a location probably like .cpan/build/MQSeries-1.23/...
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
OtisFly
PostPosted: Sun Dec 04, 2005 4:31 pm    Post subject: Issue Solved.. I think Reply with quote

Novice

Joined: 01 Dec 2005
Posts: 19
Location: London - UK

Just for Info,
Looks like my problems were caused by the fact that I was using visual c++ 2005. I'm not a c/c++ programmer, but having dug around, apparently microsoft have made changes regarding the msvcrt.dll file=>
http://msdn2.microsoft.com/en-us/library/abx4dbyh.aspx
This basically meant that whenever the mq package was invoked it bombed out.
The solution I found was to compile and link to the multithreaded static link library libcmt.lib, rather than msvcrt.lib.
Having run the makefile step, I changed all references of msvcrt to libcmt and changed the compile options from -MD to -MT in all of the generated makefiles. I ran the nmake, nmake test and install steps without a problem. Tested with inquireq.pl which worked fine.
Another solution (I think) would have been to get a version of msvcrt.lib from before microsoft introduced the new msvcrt80.dll.
The easiest solution would have been to install visual c++ 6!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » nmake test failing - Installing MQ Series Perl Extension
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.