s2cuts has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks,

I'm trying to set up a separate version of Perl with all the modules I need and am running into problems with installing DBD::mysql. Here's a pastebin of the output with the CPAN command at the top. I did follow the instructions and executed the "grant all privileges..." sql command successfully. This is the first time I've tried to build Perl from scratch so bear with me. Also, this local Perl installation works until my web app needs database connectivity.

http://pastebin.com/7dp77qTN

Maybe someone can help me to understand what I'm doing wrong. Thanks.

  • Comment on Problems setting up a local version of Perl (DBD::mysql)...

Replies are listed 'Best First'.
Re: Problems setting up a local version of Perl (DBD::mysql)...
by Anonymous Monk on Jun 18, 2011 at 05:45 UTC
    Don't be frightened by the size of the <h3> :) its simpler than p/b|big or li/b|big

    dbdimp.h:22:49: error: mysql.h: No such file or directory

    dbdimp.h:23:45: error: mysqld_error.h: No such file or directory

    dbdimp.h:25:49: error: errmsg.h: No such file or directory

    Why those files aren't under /usr/include/mysql I do not know :)

    http://search.cpan.org/dist/DBD-mysql/lib/DBD/mysql/INSTALL.pod has tips on which RPMs you need

      Ok, the install POD hinted that I was missing the OS package "mysql-devel". After installing it, DBD::mysql installed through the CPAN client.

      Thanks for the help.