LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 08-02-2010, 02:56 AM   #1
Abhinav Kakkar
LQ Newbie
 
Registered: Mar 2007
Posts: 3

Rep: Reputation: 0
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.
 
Old 08-02-2010, 09:27 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,566

Rep: Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Perl Module DiscoDave86 Linux - Software 9 07-20-2013 03:11 PM
Need help getting Bugzilla setup on RedHat - perl install-module.pl DBD::mysql alos31 Linux - Software 16 02-19-2011 10:43 AM
Error installing MySQL perl module Metropolis Linux - Software 3 10-22-2009 09:49 AM
list perl module & install perl module DBD::mysql linson_85 Linux - Newbie 4 06-22-2009 10:42 AM
installing perl module vickr1z Linux - Newbie 1 09-22-2004 07:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration