DBD:mysql driver

From: Bruce Martin (bmartin_at_mac.com)
Date: 11/21/04


To: dbi-users@perl.org
Date: Sun, 21 Nov 2004 12:18:46 -0500

Hi all,
I am new to the list so forgive me if this was just discussed. I am
trying to set up PERL under apache to use a mysql database. When I try
to install the dbd from cpan I get this message:

Can't exec "mysql_config": No such file or directory at Makefile.PL
line 174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
Can't exec "mysql_config": No such file or directory at Makefile.PL
line 174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
Can't exec "mysql_config": No such file or directory at Makefile.PL
line 174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
Can't exec "mysql_config": No such file or directory at Makefile.PL
line 174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
Can't exec "mysql_config": No such file or directory at Makefile.PL
line 174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
Failed to determine directory of mysql.h. Use

   perl Makefile.PL --cflags=-I<dir>

to set this directory. For details see the INSTALL.html file,
section "C Compiler flags" or type

   perl Makefile.PL --help
Running make test
   Make had some problems, maybe interrupted? Won't test
Running make install
   Make had some problems, maybe interrupted? Won't install
Running install for module DBD::mysql
Running make for R/RU/RUDY/DBD-mysql-2.9004.tar.gz
   Is already unwrapped into directory
/Users/Bruce/.cpan/build/DBD-mysql-2.9004
   Makefile.PL returned status 512
Running make test
   Make had some problems, maybe interrupted? Won't test
Running make install
   Make had some problems, maybe interrupted? Won't install
Bundle summary: The following items in bundle Bundle::DBD::mysql had
installation problems:
   Mysql DBD::mysql

What is the cure to this problem. I am running Mac OS X.

Bruce Martin
The Martin Solution
PO Box 644
Delaware Water Gap, PA
(570) 421-0670
bruce@martinsolution.com



Relevant Pages

  • cant install DBD::mysql - missing mysql.h?
    ... I am trynig to access a MySQL database by using the DBI module under ... I am trying to install the DBD::mysql module. ... readline() on closed filehandle PIPE at Makefile.PL line 176. ...
    (comp.lang.perl.misc)
  • Re: Installing Modules From CPAN
    ... cpan shell -- CPAN exploration and modules ... ReadLine support available (try 'install ... readline() on closed filehandle PIPE at Makefile.PL ...
    (perl.beginners)
  • question about DBI:mysql:
    ... I have need to log data from a bunch oc secure trustix/linux machines ... Can't exec "mysql_config": No such file or directory at Makefile.PL ... readline() on closed filehandle PIPE at Makefile.PL line 176. ...
    (perl.dbi.users)
  • dbi::mysql question
    ... I have need to log data from a bunch oc secure trustix/linux machines ... Can't exec "mysql_config": No such file or directory at Makefile.PL ... readline() on closed filehandle PIPE at Makefile.PL line 176. ...
    (perl.beginners)
  • Re: Re: is perl a script language?
    ... I download the perl module from cpan, ... Can't exec "mysql_config": No such file or directory at Makefile.PL line 174. ... readline() on closed filehandle PIPE at Makefile.PL line 176. ...
    (perl.beginners)