conorw89
conorw89

Reputation: 45

Problems installing DBD::mysql in Perl

i'm trying to make a perl script that interacts with my mysql database within my *AMP stack, but i'm having some problems. I have installed the DBI module but when i try to install the DBD:mysql driver it just keeps failing. I have tried to force the install too but that didn't work either.

I have been using the 'install DBD:mysql' command while in cpan in the terminal. Any help would be brilliant.

Upvotes: 0

Views: 644

Answers (1)

Alan Haggai Alavi
Alan Haggai Alavi

Reputation: 74202

Since you have not provided us with the error messages that you have stumbled upon, I guess the problem is that you have not installed MySQL client libraries and header files.

Quoting DBD::mysql:

However, you need at least the client libraries and possibly the header files, if you are compiling DBD::mysql from source.

Upvotes: 1

Related Questions