DBI perl os x osx leopard DBD, DBI::mysql

post original

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

sudo tar -xvf DBD-mysql-2.1020.tar

sudo gunzip DBI-1.30.tar.gz

sudo tar -xvf DBI-1.30.tar.gz

2. Open a Terminal Window. Enter:

cd /Library/Perl/DBI-1.30 (or whatever version of the DBI module you have downloaded)

sudo Perl Makefile.PL

sudo make

sudo make install

You have now installed the Perl DBI module.

3. Install the Perl MySQL DBD module:

cd /Library/Perl/DBD-mysql-2.1020 (or whatever version of the DBD module you have downloaded)

sudo Perl Makefile.PL

sudo make

sudo make install

You have now installed the Perl MySQL DBD module.

NOTA: para poder instalar el DBD, creo que fué necesario instala mysql de acá

La próxima probar sin instalar todas las librerias de mysql… tal vez fue al pedo. ignorar el error al correr: sudo Perl Makefile.PL dentro de DBD

Don’t Stop Here

More To Explore

Mi Historia en GM2

Zarco inició en mayo de 2015 a través de una pasantía sin saber nada de lo que es el software development y ahora es uno

Read More »

CuTt8: git branch by date

Copper’s Tips & Tricks #8: git branch by date Here at the office we use feature branches. Feature branches with ticket name/numbers. Now, I am

Read More »

CuTt7: theme-symlink

Copper’s Tips & Tricks #7: theme-symlink WordPress developers, I know some of you who use Sublime or similar tools with file explorer sidebars, have problems.

Read More »