|
under Mac OS X |
|||||||||||
Installing
MySQL Perl DBI:DBD Modules |
In order for you to use Perl to communicate with MySQL, you will need to install the Perl DBI and DBD::mysql modules. This process is quite straightfoward and standardized. To "make" the Perl modules, you MUST install the Mac OS X Developer tools which are on their own CD. These tools must match the version of Mac OS X you are running. 1. Goto Scroll down to the latest MySQL DBD driver file (currently DBD-mysql-2.1020.tar.gz) and click to download it. After this is complete, scroll down to download the latest Database Interface driver file (currently DBI-1.30.tar.gz). Both folders should have automatically extracted after downloading. Drag both folders into the Library/Perl folder (directory). IF the "tar.gz" files which you downloaded did NOT automatically extract, then still drag the files into the Library/Perl folder and open a Terminal window. Extract the folders with the commands: sudo gunzip DBD-mysql-2.1020.tar.gz 2. Open a Terminal Window. Enter: You have now installed the Perl DBI module. 3. Install the Perl MySQL DBD module: You have now installed the Perl MySQL DBD module. |