Dear Monks,

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.


In reply to Perl/ClearQuest or CQPerl/DBI on XP 64-bit by romm

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.