加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

试图安装Perl-Mysql DBD,找不到mysql_config

发布时间:2020-12-15 21:11:40 所属栏目:大数据 来源:网络整理
导读:以下是输出: Ian-MacBook-Pro:DBD-mysql-4.011 ianseyer$sudo Perl Makefile.PLCan't exec "mysql_config": No such file or directory at Makefile.PL line 76.Cannot find the file 'mysql_config'! Your execution PATH doesn't seem not contain the pa
以下是输出:
Ian-MacBook-Pro:DBD-mysql-4.011 ianseyer$sudo Perl Makefile.PL
Can't exec "mysql_config": No such file or directory at Makefile.PL line 76.

Cannot find the file 'mysql_config'! Your execution PATH doesn't seem 
not contain the path to mysql_config. Resorting to guessed values!
Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located


PLEASE NOTE:

For 'make test' to run properly,you must ensure that the 
database user 'root' 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 'root'@'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 454.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
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

to set this directory. For details see the INSTALL.html file,section "C Compiler flags" or type

  perl Makefile.PL --help

我已经研究了这个问题,并尝试使符号链接无效.

我必须自己编译吗?

解决方法

如果您安装了所有人安装的mysql服务器:
sudo apt-get install mysql-server(或类似的东西)

你丢失了一些这个perl模块的makefile所依赖的额外文件.

您可以尝试解决此问题,安装以下软件包:
sudo apt-get install libmysqlclient-dev

REFERECE:
http://cpansearch.perl.org/src/RUDY/DBD-mysql-2.9008/INSTALL.html#configuration

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读