Copyright (C) 2000-2012 |
GNU Info (mysql.info)Perl installationInstalling Perl on Unix ----------------------- Perl support for MySQL is provided by means of the `DBI'/`DBD' client interface. Note: Perl. The Perl `DBD'/`DBI' client code requires Perl Version 5.004 or later. The interface *will not work* if you have an older version of Perl. MySQL Perl support also requires that you've installed MySQL client programming support. If you installed MySQL from RPM files, client programs are in the client RPM, but client programming support is in the developer RPM. Make sure you've installed the latter RPM. As of Version 3.22.8, Perl support is distributed separately from the main MySQL distribution. If you want to install Perl support, the files you will need can be obtained from `http://www.mysql.com/Downloads/Contrib/'. The Perl distributions are provided as compressed `tar' archives and have names like `MODULE-VERSION.tar.gz', where `MODULE' is the module name and `VERSION' is the version number. You should get the `Data-Dumper', `DBI', and `Msql-Mysql-modules' distributions and install them in that order. The installation procedure is shown below. The example shown is for the `Data-Dumper' module, but the procedure is the same for all three distributions: 1. Unpack the distribution into the current directory: shell> gunzip < Data-Dumper-VERSION.tar.gz | tar xvf - This command creates a directory named `Data-Dumper-VERSION'. 2. Change into the top-level directory of the unpacked distribution: shell> cd Data-Dumper-VERSION 3. Build the distribution and compile everything: shell> perl Makefile.PL shell> make shell> make test shell> make install The `make test' command is important because it verifies that the module is working. Note that when you run that command during the `Msql-Mysql-modules' installation to exercise the interface code, the MySQL server must be running or the test will fail. It is a good idea to rebuild and reinstall the `Msql-Mysql-modules' distribution whenever you install a new release of MySQL, particularly if you notice symptoms such as all your `DBI' scripts dumping core after you upgrade MySQL. If you don't have the right to install Perl modules in the system directory or if you to install local Perl modules, the following reference may help you: `http://www.iserver.com/support/contrib/perl5/modules.html' Look under the heading `Installing New Modules that Require Locally Installed Modules'. automatically generated by info2www version 1.2.2.9 |