LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Installing Perl (v5.8.8) module for connecting to MySQL (https://www.linuxquestions.org/questions/red-hat-31/installing-perl-v5-8-8-module-for-connecting-to-mysql-823497/)

Abhinav Kakkar 08-02-2010 02:56 AM

Installing Perl (v5.8.8) module for connecting to MySQL
 
I want to connect to MySQL Database installed on RHEL 5 using perl v 5.8.8.
The available DBD perl drivers installed on my machine are:

DBM, ExampleP, File, Pg, Proxy, Sponge

I downloaded DBD-mysql-2.1012 and tried installing DBD again but got the following error:


Can't exec "mysql_config": No such file or directory at Makefile.PL line 167.
readline() on closed filehandle PIPE at Makefile.PL line 169.


On searching I found that I need to install libz-devel prior to installing driver for MySQL for Perl.

bathory 08-02-2010 09:27 AM

How are you trying to install the perl module? Using "perl Makefile.PL, make, make install"?

You can use either rhel package manager:
Code:

yum install perl-DBD-mysql
or use the cpan interface to install DBD::mysql It will also install all dependencies (like yum). Take a look at this for more

Regards


All times are GMT -5. The time now is 02:58 PM.