MySQL Forums
Forum List  »  Install & Repo

Re: problems with DBD::mysql
Posted by: David Hane
Date: October 21, 2004 03:47PM

Ken,

You need to install the mysql-devel package supplied by your linux vendor. It will have the mysql_config that you are missing.

cheers,

Dave Hane


Ken Gerdes wrote:
> Hi,
>
> I am trying to install the DBD-mysql-2.9004 module
> on my Linux box. I have installed the MySQL
> client and server rpm files onto my Linux box, DBI
> is already installed, and now I downloaded and
> unzipped the DBD-mysql-2.9004 package. When I run
> perl Makefile.PL, I get a lot of errors. The rpm
> packages did not install the /usr/lib/mysql
> libraries or the /usr/include/mysql files, so I
> took them from another Linux box and just put them
> into place, thinking this would solve the problem.
> But I run the perl Makefile.PL script, and I get
> these errors:
>
> # perl Makefile.PL
> 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.
> 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.
> I will use the following settings for compiling
> and testing:
>
> cflags (guessed) = -I/usr/include/mysql
> libs (guessed) = -L/usr/lib/mysql
> -lmysqlclient -lz -lgz
> nocatchstderr (default) = 0
> nofoundrows (default) = 0
> ssl (guessed) = 0
> testdb (default) = test
> testhost (default) =
> testpassword (default) =
> testuser (default) =
>
> To change these settings, see 'perl Makefile.PL
> --help' and
> 'perldoc INSTALL'.
>
> Unsuccessful stat on filename containing newline
> at /usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm
> line 97.
> Using DBI 1.32 installed in
> /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread
> -multi/auto/DBI
> Writing Makefile for DBD::mysql

Options: ReplyQuote


Subject
Written By
Posted
September 15, 2004 12:44PM
Re: problems with DBD::mysql
October 21, 2004 03:47PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.