DBI versiion

DBI versiion

am 05.04.2006 22:43:30 von Jie

Hi,

We're using oracle 8 and 9. I have code running on different
machines. One machine comes out different warnings as the other. I
want to check the version of DBI.

How do I find out the version of the DBI libraries I'm using?

thanks,

Jie

Re: DBI versiion

am 05.04.2006 22:59:28 von mnhan

print $DBI::VERSION,"\n";


> Date: Wed, 05 Apr 2006 13:43:30 -0700
> From: Jie Zhang
> To: dbi-users@perl.org
> Subject: DBI versiion
>
> Hi,
>
> We're using oracle 8 and 9. I have code running on different machines. One
> machine comes out different warnings as the other. I want to check the
> version of DBI.
>
> How do I find out the version of the DBI libraries I'm using?
>
> thanks,
>
> Jie
>
>

---//---
"He who learns must suffer. And even in our sleep,
pain that cannot forget, falls drop by drop upon the heart;
and, in our own despair, against our will,
comes wisdom to us by the awful grace of God."
--- Aeschylus

Re: DBI versiion

am 06.04.2006 00:05:58 von jeff

Michael Nhan wrote:

>
> print $DBI::VERSION,"\n";


Of for much more info:

perl -MDBI -e "DBI->installed_versions"

--
Jeff

>
>
>> Date: Wed, 05 Apr 2006 13:43:30 -0700
>> From: Jie Zhang
>> To: dbi-users@perl.org
>> Subject: DBI versiion
>>
>> Hi,
>>
>> We're using oracle 8 and 9. I have code running on different
>> machines. One machine comes out different warnings as the other. I
>> want to check the version of DBI.
>>
>> How do I find out the version of the DBI libraries I'm using?
>>
>> thanks,
>>
>> Jie
>>
>>
>
> ---//---
> "He who learns must suffer. And even in our sleep,
> pain that cannot forget, falls drop by drop upon the heart; and, in
> our own despair, against our will,
> comes wisdom to us by the awful grace of God."
> --- Aeschylus
>
>

Re: DBI versiion

am 06.04.2006 01:42:17 von Jie

Thanks! It works.

Jie

Michael Nhan wrote:

>
> print $DBI::VERSION,"\n";
>
>
>> Date: Wed, 05 Apr 2006 13:43:30 -0700
>> From: Jie Zhang
>> To: dbi-users@perl.org
>> Subject: DBI versiion
>>
>> Hi,
>>
>> We're using oracle 8 and 9. I have code running on different
>> machines. One machine comes out different warnings as the other. I
>> want to check the version of DBI.
>>
>> How do I find out the version of the DBI libraries I'm using?
>>
>> thanks,
>>
>> Jie
>>
>>
>
> ---//---
> "He who learns must suffer. And even in our sleep,
> pain that cannot forget, falls drop by drop upon the heart; and, in
> our own despair, against our will,
> comes wisdom to us by the awful grace of God."
> --- Aeschylus

Re: DBI versiion

am 06.04.2006 01:56:00 von Jie

I tried perl -MDBI -e "DBI->installed_versions"
I got :
Can't locate auto/DBI/installed_v.al in @INC (@INC contains:
/home01/rrdev/devel/libebay /home01/rrdev/perllib
/home01/rrdev/perllib/sun4-solaris /home04/ian/gbp/bof .
/home01/rrdev/jie/dev/rtp_recovery/rtp_recovery.vws/vobs/MIS C/DBA/PerlModules
/home01/rrdev/jie/dev/perllib /usr/local/lib/perl5/5.6.1/sun4-solaris
/usr/local/lib/perl5/5.6.1
/usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris
/usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .)
at -e line 1

I tried to cd to the DBI dir. I still get the same error. I'm not
every experienced with perl.

It will be great if this command works so I don't need to change the
perl script.

thanks,

Jie

Jeff Zucker wrote:

> Michael Nhan wrote:
>
>>
>> print $DBI::VERSION,"\n";
>
>
>
> Of for much more info:
>
> perl -MDBI -e "DBI->installed_versions"
>

Re: DBI versiion

am 06.04.2006 03:05:53 von jeff

Jie Zhang wrote:

> I tried perl -MDBI -e "DBI->installed_versions"
> I got :
> Can't locate auto/DBI/installed_v.al in @INC (@INC contains:

The installed_versions() method was added to DBI in version 1.38,
August 2003 so the fact that you got an error means that you have a
version before 1.38 and therefore can't use this particular method and
will have to use perl -MDBI -e "print $DBI::VERSION" instead.

--
Jeff

Re: DBI versiion

am 06.04.2006 07:55:12 von Jie

Right, the version I'm using is 1.25.

Thank you very much!

Jie

Jeff Zucker wrote:

> Jie Zhang wrote:
>
>> I tried perl -MDBI -e "DBI->installed_versions"
>> I got :
>> Can't locate auto/DBI/installed_v.al in @INC (@INC contains:
>
>
> The installed_versions() method was added to DBI in version 1.38,
> August 2003 so the fact that you got an error means that you have a
> version before 1.38 and therefore can't use this particular method and
> will have to use perl -MDBI -e "print $DBI::VERSION" instead.
>