[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dbi-users
Subject:    Re: Error while installing DBD-mysql-4.041
From:       Ron Savage <ron () savage ! net ! au>
Date:       2016-12-24 0:27:57
Message-ID: cabb4daa-282f-b774-2ec7-ce8cf672c5ea () savage ! net ! au
[Download RAW message or body]

Hi

Ask dpkg which package includes mysql_config:

shell> dpkg --search mysql_config
libmysqlclient-dev: /usr/share/man/man1/mysql_config.1.gz
libmysqlclient-dev: /usr/bin/mysql_config

So now you know what to install.

On 23/12/16 21:46, Lakshman Sahoo wrote:
>
> Hi Support
> I am trying to install DBD-mysql-4.041 in ubuntu 14.4 and getting the
> bellow error message. Could you please help me to over come the issue?
>
> Message
> root1@root1-Veriton-M200-H81:~/Downloads/DBD-mysql-4.041$ perl Makefile.PL
> Can't exec "mysql_config": No such file or directory at Makefile.PL line 88.
>
> Cannot find the file 'mysql_config'! Your execution PATH doesn't seem
> not contain the path to mysql_config. Resorting to guessed values!
>
>
> PLEASE NOTE:
>
> For 'make test' to run properly, you must ensure that the
> database user 'root1' can connect to your MySQL server
> and has the proper privileges that these tests require such
> as 'drop table', 'create table', 'drop procedure', 'create procedure'
> as well as others.
>
> mysql> grant all privileges on test.* to 'root1'@'localhost' identified
> by 's3kr1t';
>
> You can also optionally set the user to run 'make test' with:
>
> perl Makefile.PL --testuser=username
>
> Can't exec "mysql_config": No such file or directory at Makefile.PL line
> 561.
> Can't find mysql_config. Use --mysql_config option to specify where
> mysql_config is located
> Failed to determine directory of mysql.h. Use
>
>   perl Makefile.PL --cflags=-I<dir>
>
> to set this directory. For details see DBD::mysql::INSTALL,
> section "C Compiler flags" or type
>
>   perl Makefile.PL --help
>
> Waiting for your kind suggestions.
>
> Thanks and Regards
> Lakshman
>
>
> --
> Lakshman Sahoo (ARS)
>
> Division of Fish Genetics and Biotechnology,
> ICAR-Central Institute of Freshwater Aquaculture,
> Kausalyaganga, Bhubaneswar, Odisha, India Pin-751002

-- 
Ron Savage - savage.net.au
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic