Jassica has asked for the wisdom of the Perl Monks concerning the following question:

Hi , I get the following erro every time I do perl Makefile.PL, I tried to search for the mysql.h so I can linke it but no luck Can you help me , thanks a lot .
> perl Makefile.PL Can't exec "mysql_config": No such file or directory at Makefile.PL li +ne 169. readline() on closed filehandle PIPE at Makefile.PL line 171. Can't exec "mysql_config": No such file or directory at Makefile.PL li +ne 169. readline() on closed filehandle PIPE at Makefile.PL line 171. Can't exec "mysql_config": No such file or directory at Makefile.PL li +ne 169. readline() on closed filehandle PIPE at Makefile.PL line 171. Can't exec "mysql_config": No such file or directory at Makefile.PL li +ne 169. readline() on closed filehandle PIPE at Makefile.PL line 171. Can't exec "mysql_config": No such file or directory at Makefile.PL li +ne 169. readline() on closed filehandle PIPE at Makefile.PL line 171. 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

Replies are listed 'Best First'.
Re: Problem installing DBD-mysql-2.1026
by arthas (Hermit) on May 29, 2003 at 18:08 UTC
    You need mySQL libraries (and header files) installed on the machine where you're compiling that one.

    Of course, you don't need the full server (or even the client for that matter): just the libraries.

    Michele.
Re: Problem installing DBD-mysql-2.1026
by CountZero (Bishop) on May 29, 2003 at 20:21 UTC

    Is there a reason why you want to install from the source? For many systems there are pre-compiled binaries: see the DBD-mysql-2.1026 README.

    For Perl 5.6 this module is available from the ActiveState PPM repository for the following systems: Windows, Linux and Solaris. It is not available for HPUX.

    For Perl 5.8 a PPM package is available for Linux and Solaris.

    If necessary you can always try the PurePerl version of the MYSQL-DBD package.

    CountZero

    "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

Re: Problem installing DBD-mysql-2.1026
by dorko (Prior) on May 29, 2003 at 16:57 UTC
    It's not clear in this post (or here), do you have MySQL installed on the same machine you're trying to install DBI/DBD::MySQL?

    Cheers,

    Brent
    -- Yeah, I'm a Delt.