Hello all,

I am trying to install DBD for DB2. I have downloaded DBD-DB2-1.80a.tar.gz as well as DBD-DB2.ppd. I am using Windows 7 64-bit with Visual C++ 2008 Express edition.

When I try to ppm install DBD-DB2.ppd, it gives me error "ppm install failed: The PPD does not provide code to install for this platform".

I downloaded Active Perl 32-bit and installed it. DBD::DB2 is not included but DBD::Oracle is there and working fine. I ran vsvars32.bat. Then from CPAN, when I issued install DBD::DB2, it gave so many warnings and finally with these following 6 errors, it stopped.

dbdimp.obj : error LNK2019: unresolved external symbol _SQLGetLength@2 +0 referenced in function _get_lob_length dbdimp.obj : error LNK2019: unresolved external symbol _SQLGetSubStrin +g@40 referenced in function _get_lob_data dbdimp.obj : error LNK2019: unresolved external symbol _sqledcls_api@8 + referenced in function _db2_data_sources dbdimp.obj : error LNK2019: unresolved external symbol _sqledgne_api@1 +2 referenced in function _db2_data_sources dbdimp.obj : error LNK2019: unresolved external symbol _sqledosd_api@1 +6 referenced in function _db2_data_sources dbdimp.obj : error LNK2019: unresolved external symbol _SQLBindFileToP +aram@32 referenced in function _db2_bind_ph blib\arch\auto\DBD\DB2\DB2.dll : fatal error LNK1120: 6 unresolved ext +ernals NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual S +tudio 9.0\VC\BIN\link.EXE"' : return code '0x460' Stop.

What am I doing wrong here? Please help.

Thanks, Joydeep

In reply to DBD-DB2 by joy_deep

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.