I've just used perl -MCPAN -e shell to install DBI. Everything looked OK.

I then try to run this code:

use strict; use warnings; use DBI; use Data::Dumper; my @drivers = DBI->available_drivers(); print Dumper(@drivers); foreach my $driver (@drivers) { print "Driver: $driver\n"; my @data_ +sources = DBI->data_sources($driver); foreach my $data_source (@data_sources) { print "\tData Source is $data_source\n"; } print "\n"; }

Which breaks as follows:

$VAR1 = 'ADO'; $VAR2 = 'ExampleP'; $VAR3 = 'Multiplex'; $VAR4 = 'Proxy'; $VAR5 = 'mysql'; Driver: ADO install_driver(ADO) failed: Can't locate Win32/OLE/Variant.pm in @INC +(@INC contains: /usr/lib/perl5/i386-linux /usr/lib/perl5 /usr/lib/per +l5/site_perl/i386-linux /usr/lib/perl5/site_perl /usr/lib/perl5/site_ +perl .) at /usr/lib/perl5/site_perl/i386-linux/DBD/ADO.pm line 558. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/i386-lin +ux/DBD/ADO.pm line 558. Compilation failed in require at (eval 1) line 3. Perhaps a module that DBD::ADO requires hasn't been fully installed at test7.pl line 12

Any ideas?


In reply to DBI Installation Problem by tomazos

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.