大佬教程收集整理的这篇文章主要介绍了试图安装Perl-Mysql DBD,找不到mysql_config,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
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
我已经研究了这个问题,并尝试使符号链接无效.
我必须自己编译吗?
你丢失了一些这个perl模块的makefile所依赖的额外文件.
您可以尝试解决此问题,安装以下软件包:
sudo apt-get install libmysqlclient-dev
REFERECE:
http://cpansearch.perl.org/src/RUDY/DBD-mysql-2.9008/INSTALL.html#configuration
以上是大佬教程为你收集整理的试图安装Perl-Mysql DBD,找不到mysql_config全部内容,希望文章能够帮你解决试图安装Perl-Mysql DBD,找不到mysql_config所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。