Yes, it sounds like you have got it installed.

To check for most DBD modules you should be able to do something
similar.

For example, to see if DBD::Oracle is installed

perl -MDBD::Oracle -e 0

(doesn't return anything)

perl -MDBD::Oracle -e 'print $DBD::Oracle::VERSION'

(returns 1.12 on my machine)

Steve




[EMAIL PROTECTED] wrote:
> 
> Hi,
> Thanks. If I got the return value of 1.21 for second command, does it mean that I 
>have successfully installed the DBI?
> 
> What about checking for DBD? Please advise. Thanks a lot.
> 
> regards,
> Chewlf
> 
> -----Original Message-----
> From: Steve Piner [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 11, 2002 9:54 AM
> To: Chew, Li-Fang
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: FW: Error Make Install for DBI
> 
> The first command is supposed to return nothing - that means that a
> version of DBI is installed.
> 
> I think Thomas meant
> 
> perl -MDBI -e 'print $DBI::VERSION;'
> 
> for the second command. That should print out the version of the DBI
> that perl is using.
> 
> If you managed to correctly install the DBI, the number returned should
> be the version number that you installed.
> 
> Steve
> 
> [EMAIL PROTECTED] wrote:
> >
> > Hi,
> > When I typed the first command, it return nothing.
> >
> > But for the second command which will display the installed version, I got error 
>"Variable syntax". Please advise.
> >
> > thanks,
> > Chewlf
> >
> > -----Original Message-----
> > From: Thomas A. Lowery [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, June 11, 2002 9:23 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: FW: Error Make Install for DBI
> >
> > > When I make install I am getting the below message. How can I know that I am 
>successfully installed the DBI? Please advise.
> >
> > To answer this question, at the command line type:
> > perl -MDBI -e 0
> >
> > You'll get nothing except the next command prompt if DBI is installed.
> > If not you'll  get an error message about "not able to find DBI ..."
> >
> > Also:
> > perl -MDBI -e "print $DBI::VERSION;"
> > Gives the currently installed version.
> >
> > Tom
> >
> > --
> > Thomas A. Lowery
> > See DBI/FAQ http://xmlproj.dyndns.org/cgi-bin/fom
> 
> --
> Steve Piner
> Web Applications Developer
> Marketview Limited
> http://www.marketview.co.nz

-- 
Steve Piner
Web Applications Developer
Marketview Limited
http://www.marketview.co.nz

Reply via email to