Installing DBI on Linux (and nix) Systems

Installing DBI on Linux (and *nix) Systems

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.

  1. To start the CPAN module, type:

    perl -MCPAN -e ‘shell'

    This gets you to a prompt that looks like this:

    cpan>
  2. To install the DBI, simply type:

    install DBI
  3. To install the DBD drivers for MySQL, type:

    install DBD::mysql

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.



Perl Database Programming
Perl Database Programming
ISBN: 0764549561
EAN: 2147483647
Year: 2001
Pages: 175

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net