Re: install DBD::mysql, can't execute mysql_config

Dave Howorth <[email protected]>
Newsgroups gmane.comp.db.mysql.perl
Organization MRC Centre for Protein Engineering
Message-ID <[email protected]>
zhihua li wrote:
> recently i've been trying to install DBD::mysql. as the first step, i 
> downloaded the binary file of mysql for linux from mysql.com.  i 
> followed the instructions unpacking the files into a directory 
> /usr/mysql.

Most distributions have prepackaged modules for one or more versions of 
mysql. You may find it more convenient to use those.

> then i proceeded to install DBD::mysql.  however, the 
> makefile kept saying that it couldn't find mysql_config. actually i 
> found the file at /usr/mysql/bin, and added the full path to the PATH 
> enviroment parameter. but still the make file process alwayse failed, 
> saying it couldn't find and execute mysql_config.  what's more, when i 
> went to the directory /usr/mysql/bin and typed mysql_config, the shell 
> said there's no such command, even if the file is right there.

I think you need to go back to basics to figure out why the script isn't 
being found. Which user are you running as? Which user is the installer 
running as? What are the permissions on /usr/mysql/bin and 
/usr/mysql/bin/mysql_config?  At the point where you try to run the 
script, print the contents of $PATH. Does it actually have usr/mysql/bin 
in it? Does it actually have '.' in it? Once you have all that 
information, you can figure out why the script isn't being found.

Cheers, Dave

-- 
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe:    http://lists.mysql.com/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.