in reply to Problem with DBD::mysql install

Can't exec "mysql_config": No such file or directory at Makefile.PL line 169.
This suggests to me that either MySQL is not installed, or it is installed in a location that is not in your path. Try rpm -qa |grep -i mysql (don't know the exact package name, but this brute force method should find it if it's installed) to find out if mysql is installed.

CU
Robartes-

Replies are listed 'Best First'.
Re: Re: Problem with DBD::mysql install
by nmk (Initiate) on Apr 08, 2003 at 06:36 UTC

    I installed MySQL 4 fom the binary distribution on their site. It is in /usr/local/mysql... How do I point the cpan installer to this location?

    Or what do I have to do for a manual install? Which options have to be set?

    nmk

      You need to make sure the CPAN installer finds the mysql-config script (or is it a binary). Put /usr/local/mysql/bin (or wherever it lives in your PATH):
      export PATH=$PATH:/usr/local/mysql/bin
      or, if you use a csh-like shell:
      setenv PATH $PATH:/usr/local/mysql/bin

      CU
      Robartes-

        nope, putting mysql's bin directory where the script you mentioned indeed is, did not solve the problem.

        here is the log of my attempt of installing manually and setting the options. mysqld was running at the time of the attempt...

        nmk

        thanks a lot, I will try it tonight and let you know how it went.

        nmk