mysql - bugzilla: install-module.pl GD 返回显示错误

标签 mysql mamp cpan bugzilla

尝试在 Mac 上安装 bugzilla。尝试安装 DBD mysql 但出现以下错误:

> enter code hereChecking if your kit is complete... Looks good Warning
> (mostly harmless): No library found for -lmysqlclient Using DBI 1.631
> (for perl 5.018002 on darwin-thread-multi-2level) installed in
> /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level/auto/DBI/
> Writing Makefile for DBD::mysql Writing MYMETA.yml and MYMETA.json cp
> lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm cp
> lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod cp
> lib/DBD/mysql.pm blib/lib/DBD/mysql.pm cp lib/Bundle/DBD/mysql.pm
> blib/lib/Bundle/DBD/mysql.pm cp README.pod blib/lib/DBD/README.pod cc
> -c  -I/System/Library/Perl/Extras/5.18/darwin-thread-multi-2level/auto/DBI -I/Applications/MAMP/Library/include -fno-omit-frame-pointer  -g -DDBD_MYSQL_INSERT_ID_IS_GOOD -g  -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -Os   -DVERSION=\"4.032\" -DXS_VERSION=\"4.032\"  "-I/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE"  
> dbdimp.c In file included from dbdimp.c:20: ./dbdimp.h:21:10: fatal
> error: 'mysql.h' file not found
> #include <mysql.h>  /* Comes with MySQL-devel */
>          ^ 1 error generated. make: *** [dbdimp.o] Error 1   CAPTTOFU/DBD-mysql-4.032.tar.gz   /usr/bin/make -- NOT OK Skipping
> test because of notest pragma Running make install   Make had returned
> bad status, install seems impossible

无法继续进行设置

最佳答案

它正在寻找 MySQL 的头文件和库,它们是 DBD::mysql 的外部依赖项。您需要安装 MySQL、MySQL 客户端库,或者告诉安装程序您安装它们的位置。

关于mysql - bugzilla: install-module.pl GD 返回显示错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32415572/

相关文章:

php - MAMP 和 PHP “SSL operation failed with code 1”

php - MAMP 无法升级 mysql 数据库

linux-kernel - 绕过 tty 层并复制给用户

perl carton cpanfile,可选安装到主 perl 环境

mysql - 关于使用 where 子句、日期间隔和 'and' 和/或 'or' 的混淆应该很快

php - 具有 IP 历史记录的投票系统

windows - 全新安装后LWP连接问题

perl - 为什么 Scalar::Util::Numeric 安装不正确?

php - 如何通过序列化形式从不同的输入名称中获取值以插入到mysql中?

MySQL : How to declare foreign key inline?