you don't want to say

perl -MDBD -e "print $DBD::VERSION"

you want to say

perl -MDBD::ODBC -e "print $DBD::ODBC::VERSION"


Godoli Davide wrote:

>Hi all, I'm Dego and I have some problem to installing modules.
>
> I've already installed DBI-1_20 on my system, and when try to
>install DBD::ODBC I get:
>
>-Version 0.28 of 'DBD::ODBC' is already installed
>-Remove it or use 'Verify --upgrade DBD::ODBC'.
>
>Then I try to lounch the demo:
>
>#!C:\Programmi\ActivePerl\bin\perl.exe
>
>use DBI;
>use CGI_Lite;
>
>$|=1;
>
># ora dobbiamo cambiare il meccanismo
># per leggere l'input dell'utente
># l'input viene passato dal server http
>
>$cgi=new CGI::Lite;
>%form=$cgi->parse_form_data;
>$id=$form{id};
>$dbh = DBI->connect ('dbi:ODBC:pubblicazioni');
>$sql = "SELECT * FROM Articoli WHERE
>                     ( Articoli.ArtID = $id )";
>$sth=$dbh->prepare($sql);
>$sth->execute;
>
># e dobbiamo anche cambiare la fase di output
># perche' ora il programma deve generare
># un valido documento HTML
>
>print "Content-type: text/html\n\n";
>print "Il record numero $id
>contiene i seguenti dati:<BR>\n";
>foreach $field ( $sth->fetchrow() ) {
>   print "$field<BR>\n";
>}
>
>and I get:
>
>Can't locate loadable object for module DBI in @INC <@INC contains:
>C:/Perl/lib.> at C:/Perl/lib/DBI.pm line 190
>BEGIN failed--compilation aborted at C:/Perl/lib/DBI.pm  line 190.
>BEGIN failed in require at demo.cgi line 3.
>BEGIN failed--compilation aborted at demo.cgi line 3.
>
>I also digited:
>C:\>perl -MDBI -e "print $DBI::VERSION" and I got:
>1.20
>But when I digited:
>C:\>perl -MDBD -e "print $DBD::VERSION"  I got:
>Cant locate DBD.pm in@ inc(@.inc contains:C/Programmi/ActivePerl/lib
>C/Programmi/ActivePerl/site/lib.).
>Begin failed --compilation aborted.
>What does it mean??
>If you can help me, let's answer!
>Thank's
>
>>Dego.
>>
>
>
>
>

-- 
Regards,
Brent

interactivetools.com, inc.
Tel: (604)689-3347 - Fax: (604)689-3342 - Toll Free: 1(800)752-0455
Software for your Website - http://www.interactivetools.com/  

Attachments accepted: TXT, HTML, RTF, PDF 
I do not accept attachments which are capable of harbouring viruses, 
for example Word for Windows. Please use File/Save As RTF or HTML.




Reply via email to