romm has asked for the wisdom of the Perl Monks concerning the following question:
I have a complex set of perl applications that interact with ClearQuest. On Windows 32-bit everything worked fine, but when we tried to migrate to 64-bit, we ran into the following difficulties we could not resolve:
1) If we run our applications via 64-bit Active Perl (v5.8.9) interpreter, with all modules installed as ppms, we cannot catch ClearQuest Windows object:
my $cq_session = Win32::OLE->new('CLEARQUEST.SESSION'); yields undef.
When I try to establish a connection to any other application, even CLEARQUEST.Application2, the session establishes fine, but CLEARQUEST.SESSION is out of reach. In 32-bit Windows it worked.
2) We contacted IBM/Rational and they told us they do not support this issue but we rather should use cqperl. cqperl is a v5.8.6 32-bit perl compiled by Rational and supplied with the whole ClearQuest package. However it lacks some modules we need, for instance DBI and DBD::ODBC, and Rational refuses to support their installation. So we tried to install them ourselves.
We needed compilation, so we put Visual Studio 2005. The compilation stage of DBI (and of DBD::ODBC) went fine, but on make test the things broke.
Make reported the following error:
Can't load 'c:/path/to/blib/arch/auto/DBI.dll' for module DBI: load_file:%1 is not a valid Win32 application at c:/path/to/CQPerl/lib/5.8.6/lib/DynaLoader.pm line XX.
Likewise error occurs if we ignore test errors and make install, but "Can't load" now points to the correct path of DBI.dll within CQPerl tree. (And the dll is present!) Same happens with DBD::ODBC.
cl (VC compiler) was tried in x86 (32-bit) mode. In 64-bit mode compilation failed on linking stage.
Can anyone advise either on 1) or 2) (1 is the preferrable way)
Thanks in advance,
Roman.
|
---|