There's more than one way to do things | |
PerlMonks |
How to get development headers and mysql client libraries for DBD::mysql installationby Perl300 (Friar) |
on Dec 12, 2016 at 23:23 UTC ( [id://1177678]=perlquestion: print w/replies, xml ) | Need Help?? |
Perl300 has asked for the wisdom of the Perl Monks concerning the following question:
Please forgive me for asking yet another DBD::mysql installation related question.
I already have a system perl (v5.10.1) installed on GNU/Linux under /usr/bin/perl and a MySQL server and client are running on same host under /usr/bin/mysql.
I have installed local perl (v5.24.0) under application owned directory ~/localperl/bin/perl and have installed CPAN, cpanm and other required modules using them. But when I am trying to install DBD::mysql using cpanm or cpan shell (after installing DBI for local perl) I get error as below:
I found from some old posts on PM that this means I need to have the development headers and mysql client libraries available on my system. I have already checked for mysql.h, mysqld_error.h and errmsg.h files on my machine but they are not present. Per documentation I think I can install these using yum as:
But won't this again install it for system perl instead of local perl? So few questions I have are: 1) How to get development headers and mysql client libraries for local perl? 2) Are there any reference docs I can follow for this specific need to install DBD::mysql on GNU/LINUX for local perl where system perl is also installed and MySQL server and client are on the same host. Thank you for bearing with my long post.
Back to
Seekers of Perl Wisdom
|
|