Gossamer Forum
Home : General : Databases and SQL :

DBD::Mysql installation problem

Quote Reply
DBD::Mysql installation problem
This is actually related to the post I found here... insomuch as I'm having the same problem while trying to install. I get the same message (snipped down...) :
Quote:
Can't exec "mysql_config": No such file or directory at Makefile.PL line 169.
readline() on closed filehandle PIPE at Makefile.PL line 171.

The issue I'm having is there simply *isn't* a mysql_config script on this box, which makes the suggested link in that thread nice, if not very helpful at the moment... at least from a theoretical point of view.

It's a Mandrake 9.0 install... mysqld is up and running just fine, just sans a mysql_config script. I'm 100% positive I'm overlooking something basic... just not seeing what it is. Any help?
Quote Reply
Re: [markguy] DBD::Mysql installation problem In reply to
What OS are you using?

What does:

locate mysql_config reveal?

Last edited by:

Paul: Jan 16, 2003, 12:23 PM
Quote Reply
Re: [Paul] DBD::Mysql installation problem In reply to
Mandrake Linux 9.0

updatedb/locate mysql_conf* returns spit. Nada. Nothing that's even config related when I looked for mysql* or any other combination I could think of. Far as I can tell, it's not there. Which may be the expected behavior for the install... it's been awhile since I installed mysql... but it's sure as hell not expected as far as DBD::Mysql is concerned ;)
Quote Reply
Re: [markguy] DBD::Mysql installation problem In reply to
What does:

rpm -qa | grep -i mysql

show? You might need to grab a mysql-dev or mysql-lib/mysql-include rpms.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] DBD::Mysql installation problem In reply to
rpm -qa | grep -i mysql returns:

MySQL-client-3.23.52-1.2mdk
libmysql10-3.23.52-1.2mdk
MySQL-3.23.52-1.2mdk

And from this, I assume I need other rpms... aren't these rpms supposed to make things *easier*? Hard to believe I'm regretting not building from source... :)

Presumably, it would be ideal if versions all matched up nice and neat... ?

Thanks...
Quote Reply
Re: [markguy] DBD::Mysql installation problem In reply to
Mandrake 9.2

I'm having the same issue - cannot find mysql_config

Funny thing is that DBD::mysql is already installed Wink

The default Mandrake perl is at /usr/bin/perl, but it is threaded.

I installed a non-threaded version of perl at /usr/local/bin/perl that I'm trying to get to work with mysql, but I can't get the DBD::mysql module to install under /usr/local/bin/perl

I get that same error:

Quote:
CPAN.pm: Going to build R/RU/RUDY/DBD-mysql-2.9003.tar.gz

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.

It goes on to say that I could define the location of the directory:

Quote:
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

But, since I can't find it to begin with, there's nothing to point to.

Would anyone have a clue about this?

Thanks

'Smile

------------------------------------------
Quote Reply
Re: [DogTags] DBD::Mysql installation problem In reply to
I am a Mandrake 10 user, and I found that the mysql_config utility was not available in any mySQL pacakges that I installed with Mandrake. However it was available in the MySQL-devel rpm from the MySQL.com website. So I am using all rpms from that website.

Hope that helps