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

Top Page

Reply to this message
Author: Keith Edmunds
Date:  
To: hampshire
Subject: Re: [Hampshire] Perl modules, how do I know I have them??
On Tue, 13 Jan 2009 07:40:50 +0000, xendistar@??? said:

> DBI and DBD::mysql
>
> How do I check that these are installed?


From the command line:

$ perl -e 'use DBI;'
$ perl -e 'use DBD::mysql;'

If you get a prompt back with no messages, you have module in question
installed. If you get an error message ("Can't locate DBD/mysql.pm in
@INC ...") then you don't.

Keith

--
Keith Edmunds

+-------------------------------------------------------------------------+
|    Tiger Computing Ltd    |  Helping businesses make the most of Linux  |
|  "The Linux Specialists"  |       http://www.tiger-computing.co.uk      |

+-------------------------------------------------------------------------+