免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 8899 | 回复: 3
打印 上一主题 下一主题

[Zabbix] php安装 mysqli模块,make错误:make: *** [mysqli.lo] Error 1 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2016-01-27 10:08 |只看该作者 |倒序浏览
/bin/sh /home/php-5.5.30/ext/mysqli/libtool --mode=compile cc  -I. -I/home/php-5.5.30/ext/mysqli -DPHP_ATOM_INC -I/home/php-5.5.30/ext/mysqli/include -I/home/php-5.5.30/ext/mysqli/main -I/home/php-5.5.30/ext/mysqli -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -I/usr/local/mysql/include/mysql  -DHAVE_CONFIG_H  -g -O2   -c /home/php-5.5.30/ext/mysqli/mysqli.c -o mysqli.lo
cc -I. -I/home/php-5.5.30/ext/mysqli -DPHP_ATOM_INC -I/home/php-5.5.30/ext/mysqli/include -I/home/php-5.5.30/ext/mysqli/main -I/home/php-5.5.30/ext/mysqli -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -I/usr/local/mysql/include/mysql -DHAVE_CONFIG_H -g -O2 -c /home/php-5.5.30/ext/mysqli/mysqli.c  -fPIC -DPIC -o .libs/mysqli.o
In file included from /usr/local/mysql/include/mysql/my_global.h:86,
                 from /home/php-5.5.30/ext/mysqli/php_mysqli_structs.h:63,
                 from /home/php-5.5.30/ext/mysqli/mysqli.c:34:
/usr/local/mysql/include/mysql/my_config.h:1173:1: warning: "PACKAGE_NAME" redefined
In file included from /home/php-5.5.30/ext/mysqli/mysqli.c:24:
/home/php-5.5.30/ext/mysqli/config.h:56:1: warning: this is the location of the previous definition
In file included from /usr/local/mysql/include/mysql/my_global.h:86,
                 from /home/php-5.5.30/ext/mysqli/php_mysqli_structs.h:63,
                 from /home/php-5.5.30/ext/mysqli/mysqli.c:34:
/usr/local/mysql/include/mysql/my_config.h:1176:1: warning: "PACKAGE_STRING" redefined
In file included from /home/php-5.5.30/ext/mysqli/mysqli.c:24:
/home/php-5.5.30/ext/mysqli/config.h:59:1: warning: this is the location of the previous definition
In file included from /usr/local/mysql/include/mysql/my_global.h:86,
                 from /home/php-5.5.30/ext/mysqli/php_mysqli_structs.h:63,
                 from /home/php-5.5.30/ext/mysqli/mysqli.c:34:
/usr/local/mysql/include/mysql/my_config.h:1179:1: warning: "PACKAGE_TARNAME" redefined
In file included from /home/php-5.5.30/ext/mysqli/mysqli.c:24:
/home/php-5.5.30/ext/mysqli/config.h:62:1: warning: this is the location of the previous definition
In file included from /usr/local/mysql/include/mysql/my_global.h:86,
                 from /home/php-5.5.30/ext/mysqli/php_mysqli_structs.h:63,
                 from /home/php-5.5.30/ext/mysqli/mysqli.c:34:
/usr/local/mysql/include/mysql/my_config.h:1182:1: warning: "PACKAGE_VERSION" redefined
In file included from /home/php-5.5.30/ext/mysqli/mysqli.c:24:
/home/php-5.5.30/ext/mysqli/config.h:65:1: warning: this is the location of the previous definition
/home/php-5.5.30/ext/mysqli/mysqli.c:321: error: expected ';', ',' or ')' before '*' token
/home/php-5.5.30/ext/mysqli/mysqli.c:364: error: expected ';', ',' or ')' before '*' token
/home/php-5.5.30/ext/mysqli/mysqli.c:413: error: expected ';', ',' or ')' before '*' token
/home/php-5.5.30/ext/mysqli/mysqli.c: In function 'mysqli_object_get_debug_info':
/home/php-5.5.30/ext/mysqli/mysqli.c:473: warning: assignment makes pointer from integer without a cast
/home/php-5.5.30/ext/mysqli/mysqli.c: In function 'zm_startup_mysqli':
/home/php-5.5.30/ext/mysqli/mysqli.c:624: error: 'mysqli_read_property' undeclared (first use in this function)
/home/php-5.5.30/ext/mysqli/mysqli.c:624: error: (Each undeclared identifier is reported only once
/home/php-5.5.30/ext/mysqli/mysqli.c:624: error: for each function it appears in.)
/home/php-5.5.30/ext/mysqli/mysqli.c:625: error: 'mysqli_write_property' undeclared (first use in this function)
/home/php-5.5.30/ext/mysqli/mysqli.c:627: error: 'mysqli_object_has_property' undeclared (first use in this function)
make: *** [mysqli.lo] Error 1




请问怎么解决 ,网上的方法都试过了,没用。

论坛徽章:
17
2015年辞旧岁徽章
日期:2015-03-03 16:54:152017金鸡报晓
日期:2017-02-08 10:39:422017金鸡报晓
日期:2017-01-10 15:19:56JAVA
日期:2016-11-01 13:25:46C
日期:2016-10-25 16:01:4715-16赛季CBA联赛之八一
日期:2016-06-21 23:38:0815-16赛季CBA联赛之山东
日期:2016-05-12 12:49:54IT运维版块每日发帖之星
日期:2016-04-20 06:20:00IT运维版块每日发帖之星
日期:2016-03-22 06:20:00黄金圣斗士
日期:2015-11-24 10:43:13IT运维版块每日发帖之星
日期:2015-08-25 06:20:002015亚冠之德黑兰石油
日期:2015-08-22 22:55:54
2 [报告]
发表于 2016-01-27 12:22 |只看该作者
回复 1# xihuineng

可能没安装mysql的头文件(mysql-devel),安装这个(yum -y install mysql-devel)后再重试下。
   

论坛徽章:
0
3 [报告]
发表于 2016-01-27 13:49 |只看该作者
还是这样的错误,这个之前装过mysql-devel了, 各位大神都没碰到过么?  

./configure --prefix=/usr/local/mysqli \
--with-php-config=/usr/local/php/bin/php-config \
--with-mysqli=/usr/local/mysql/bin/mysql_config  
编译安装没有问题,提示是这样
。。。。。。
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged

论坛徽章:
17
2015年辞旧岁徽章
日期:2015-03-03 16:54:152017金鸡报晓
日期:2017-02-08 10:39:422017金鸡报晓
日期:2017-01-10 15:19:56JAVA
日期:2016-11-01 13:25:46C
日期:2016-10-25 16:01:4715-16赛季CBA联赛之八一
日期:2016-06-21 23:38:0815-16赛季CBA联赛之山东
日期:2016-05-12 12:49:54IT运维版块每日发帖之星
日期:2016-04-20 06:20:00IT运维版块每日发帖之星
日期:2016-03-22 06:20:00黄金圣斗士
日期:2015-11-24 10:43:13IT运维版块每日发帖之星
日期:2015-08-25 06:20:002015亚冠之德黑兰石油
日期:2015-08-22 22:55:54
4 [报告]
发表于 2016-01-28 10:35 |只看该作者
本帖最后由 ccjsj1 于 2016-01-28 10:37 编辑

回复 3# xihuineng
没遇到过这样的问题,不能yum安装吗?
像是版本不兼容问题导致,介绍下系统版本、php版本、mysql版本、安装方法,看这边是否有环境试下。

   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP