Make DBI and DBD work with multithreaded Perl 5.8.0

Jun 18, '03 10:11:00AM

Contributed by: vansie

After finding a hint on the site about doing a clean install of Perl 5.8.0 on OS X 10.2 and being very happy that the described method actually left me with a fully working Perl 5.8.0 installation, I realized I had done a threaded install, instead of a non-threaded one. So far on OS X the preference has been to do a non-threaded install because certain Perl modules in the DBI and DBD families would not compile correctly. This problem seemed to be isolated to OS X. Needing to install DBI and DBD::mysql, and not wanting to do a whole reinstall of Perl, I came upon this url. It's a Google cache URL; hope that works for everyone.

Basically what the writer says and what I have verified to be correct, is that there are some issues with the newer GCC3 compiler that is installed with the OS X 10.2 Dev Tools which prevent these modules from compiling correctly. However, changing the "cc" directive (which is softlinked to gcc3) in the Makefile to gcc2 (the older gcc 2.9.x version) will allow a successful compile and subsequent installation of the DBI and DBD::mysql modules.

These are the two I needed for my purposes; I cannot vouch for other DBD modules to have the same rate of success, but at least this saved me from reinstalling Perl.

I hope this helps someone out there, it sure helped me.

Comments (4)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20030617021800190