DogTags Posted January 10, 2004 Share Posted January 10, 2004 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 Link to comment Share on other sites More sharing options...
aru Posted January 10, 2004 Share Posted January 10, 2004 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 More sharing options...
DogTags Posted January 10, 2004 Author Share Posted January 10, 2004 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 More sharing options...
DogTags Posted January 10, 2004 Author Share Posted January 10, 2004 (edited) I even tried to force install it, but that still didn't work: /usr/local/bin/perl -MCPAN -e 'force install DBD::mysql' Edited January 10, 2004 by DogTags Link to comment Share on other sites More sharing options...
Guest anon Posted January 10, 2004 Share Posted January 10, 2004 I guess you have been here? http://www.mysql.com/doc/en/DBI_with_DBD.html Link to comment Share on other sites More sharing options...
DogTags Posted January 14, 2004 Author Share Posted January 14, 2004 (edited) 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 January 14, 2004 by DogTags Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now