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
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.