Re: [Hampshire] Perl modules, how do I know I have them??

Top Page

Reply to this message
Author: Tim
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Perl modules, how do I know I have them??
On Tuesday 13 January 2009 19:39:29 Victor Churchill wrote:
> 2009/1/13 Tim <xendistar@???>:
> > On Tuesday 13 January 2009 10:33:20 Jacqui Caren wrote:
> >> Vic wrote:
> >> >> DBI and DBD::mysql
> >> >>
> >> >> How do I check that these are installed? I am running Mepis 8 RC1
> >> >> (which is based on Debian Lenny).
> >> >
> >> > The easiest way to see if they are on your system is just to try to
> >> > use them:
> >> >
> >> > perl -e "use DBI"
> >> > perl -e "use DBD::mysql"
> >> >
> >> > If you get "Can't locate ..." errors, you haven't got them.
> >>
> >> perl -MDBD::mysql=99999 -e 'print $DBD::mysql VERSION'
> >>
> >> should tell you what version you have installed.
> >
> > I could not get your command to run, kept getting
> >
> > "Cant use undefined value as symbol reference at -e line 1"
> >
> > Tim
>
> Looks like there was a typo. Missing "::".
> I don't have mySQL but do have Oracle - the equivalent result looks like
>
> qg@ws[~/bin]$ perl -MDBD::Oracle=99999 -e 'print $DBD::Oracle::VERSION'
> DBD::Oracle version 99999 required--this is only version 1.16 at
> /usr/lib/perl5/5.8.0/Exporter/Heavy.pm line 121.
> BEGIN failed--compilation aborted.
> qg@ws[~/bin]$



That seem to work, got a reply of 4.007

Tim

____________________________________________________________
FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
Check it out at http://www.inbox.com/earth