On 16/07/2011 05:34, n...@kastle.org wrote:
Hi,
I want to interface my perl scripts with the MySQL dataBases.
I'm running an Ubuntu Web Server - How can I test to see if
DBI is installed and, if it's not, what's the process (or where
can I find/read) to install both (if I need to) DBI and DBD-mysql?
Thanks for the help,
Nick. . .
perl -MDBI -le 'print $DBI::VERSION'
perl -MDBD::mysql -le 'print $DBD::mysql::VERSION'
You can probably download both as part of the Ubuntu package management.
To install manually you'll need to install the mysql client libs and
possibly dev packages via your package manager then go to
search.cpan.org, download DBI and DBD::mysql and install them like any
Perl module - read the README or INSTALL files.
Martin