Jump to content

Where is mysql_config ?


DogTags
 Share

Recommended Posts

I gotta find where MD 9.2 has this mysql_config file.

 

I searched all over, but I couldn't find anything.

 

Would anyone know where to look?

 

A standard mysql install would have it at /usr/local/mysql/bin/mysql_config, but this doesn't exist in MD.

 

Where does Mandrake hide it?

 

Thanks :thumbs:

Link to comment
Share on other sites

I think you are missunderstanding something, IMHO a standard mysql installation doesn't need to include 'mysql-config', in fact neither my debian, nor my slackware have that file. That's because that file is just the configuration file for the source code of the mysql client (useful for compilation).

 

If you want that file in your system you'll need to install the source package not the binary one (which is the one installed on a normal install).

 

Maybe you are looking for something else.

 

HTH

Link to comment
Share on other sites

Thanks, aru

 

The reason that I need to understand the mysql_config thing is that I'm trying to install DBD::mysql to work with a secondary perl installation under /usr/local/bin/perl

 

The MD default perl is at /usr/bin/perl

 

Here is the error when I try to install the DBD::mysql module:

 

DBD-mysql-2.9003/TODO

 

  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.

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

 

I started a different thread on the whole issue of installing DBD::mysql and DBD::Pg, but there were no responses. So, I thought I would start this targeted thread on just the location of mysql_config in the hopes that I could figure out the rest if I just knew where that config file was.

 

What I thought of doing was creating a temp directory and putting in a blank, writeable mysql_config file to see what happened.

 

Is there a way to install DBD::mysql without the mysql_config file?

 

Thanks very much :-)

Link to comment
Share on other sites

Solved..........

 

Had to install libmysql12-devel-4.0.15-1mdk from Disk 3.

 

Go the rpmdrake + and search for mysql

 

The default install of MD 9.2 does include libmysql12-4.0.15-1mdk, but not the "devel" version

 

Once I plugged in the devel version, the mysql_config file was created. At that point, I did:

 

/usr/local/bin/perl -MCPAN -e 'install DBD::mysql'

 

to install DBD::mysql to work with the secondary perl, and it seems to be working fine now.

 

However, the 'install' call I believe also tries to upgrade your perl to the latest version. So, to just install the module without updating, I believe you would call it like this:

 

/usr/local/bin/perl -MCPAN -e 'get DBD::mysql'

 

You might have to install Class::Container first, though, to do that type of module install.

 

HTH :)

Edited by DogTags
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...