Installing the DBI and DBD drivers for Linux is a bit more involved than the Windows installation procedures.
We'll use the CPAN module to install the DBI and DBD drivers.
To start the CPAN module, type:
perl -MCPAN -e ‘shell'
This gets you to a prompt that looks like this:
To install the DBI, simply type:
To install the DBD drivers for MySQL, type:
These commands download and install the DBI and DBD drivers.
There may be permission problems when installing the DBD::mysql module; please refer to the MySQL documentation for instructions on setting up users and passwords. If you do get errors with the install, you can force the installation by using force install DBD::mysql instead of just using install DBD::mysql.
That should be all that you need to do to get the database modules installed onto your Linux system.