首页
下载
文档
社区
视频
捐赠
源代码
赞助商
AOT 编译器
AI 助理
商业产品
PHP AOT 原生编译器
Swoole-Compiler 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
swoole-1.8.5 编译安装失败
编译参数: {{{ --enable-swoole-debug --enable-sockets --enable-async-mysql --enable-async-redis --enable-async-httpclient --enable-ringbuffer --enable-openssl }}} {{{ /bin/sh /data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable/libtool --mode=compile cc -I. -I/data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable -DPHP_ATOM_INC -I/data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable/include -I/data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable/main -I/data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable -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/data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable/include -DHAVE_CONFIG_H -Wall -pthread -g -O2 -c /data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable/swoole_mysql.c -o swoole_mysql.lo cc -I. -I/data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable -DPHP_ATOM_INC -I/data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable/include -I/data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable/main -I/data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable -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/data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable/include -DHAVE_CONFIG_H -Wall -pthread -g -O2 -c /data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable/swoole_mysql.c -fPIC -DPIC -o .libs/swoole_mysql.o In file included from /data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable/swoole_mysql.c:25: /usr/local/php/include/php/ext/mysqli/php_mysqli_structs.h:63:23: error: my_global.h: No such file or directory /usr/local/php/include/php/ext/mysqli/php_mysqli_structs.h:79:20: error: my_sys.h: No such file or directory /usr/local/php/include/php/ext/mysqli/php_mysqli_structs.h:80:19: error: mysql.h: No such file or directory /usr/local/php/include/php/ext/mysqli/php_mysqli_structs.h:81:20: error: errmsg.h: No such file or directory /usr/local/php/include/php/ext/mysqli/php_mysqli_structs.h:82:21: error: my_list.h: No such file or directory /usr/local/php/include/php/ext/mysqli/php_mysqli_structs.h:83:22: error: m_string.h: No such file or directory /usr/local/php/include/php/ext/mysqli/php_mysqli_structs.h:84:26: error: mysqld_error.h: No such file or directory /usr/local/php/include/php/ext/mysqli/php_mysqli_structs.h:86:21: error: m_ctype.h: No such file or directory /usr/local/php/include/php/ext/mysqli/php_mysqli_structs.h:87:29: error: mysqli_libmysql.h: No such file or directory /data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable/swoole_mysql.c: In function ‘mysql_get_socket’: /data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable/swoole_mysql.c:299: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type /usr/include/string.h:536: note: expected ‘const char *’ but argument is of type ‘struct zend_string *’ make: *** [swoole_mysql.lo] Error 1 }}} 环境: {{{ PHP 7.0.6 (cli) (built: May 24 2016 19:42:04) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies }}} {{{ Linux version 3.10.0-1-tlinux2_kvm_guest-0013.tl1 (gcc version 4.4.6 20110731 (Red Hat 4.4.6-4) (GCC) ) #1 SMP Wed Apr 22 20:56:10 CST 2015 }}} {{{ # php -m | grep mysql mysqli mysqlnd pdo_mysql }}}
发布于8年前 · 0 次浏览 · 来自
提问
y
yuzhe
编译参数: {{{ --enable-swoole-debug --enable-sockets --enable-async-mysql --enable-async-redis --enable-async-httpclient --enable-ringbuffer --enable-openssl }}} {{{ /bin/sh /data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable/libtool --mode=compile cc -I. -I/data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable -DPHP_ATOM_INC -I/data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable/include -I/data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable/main -I/data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable -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/data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable/include -DHAVE_CONFIG_H -Wall -pthread -g -O2 -c /data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable/swoole_mysql.c -o swoole_mysql.lo cc -I. -I/data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable -DPHP_ATOM_INC -I/data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable/include -I/data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable/main -I/data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable -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/data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable/include -DHAVE_CONFIG_H -Wall -pthread -g -O2 -c /data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable/swoole_mysql.c -fPIC -DPIC -o .libs/swoole_mysql.o In file included from /data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable/swoole_mysql.c:25: /usr/local/php/include/php/ext/mysqli/php_mysqli_structs.h:63:23: error: my_global.h: No such file or directory /usr/local/php/include/php/ext/mysqli/php_mysqli_structs.h:79:20: error: my_sys.h: No such file or directory /usr/local/php/include/php/ext/mysqli/php_mysqli_structs.h:80:19: error: mysql.h: No such file or directory /usr/local/php/include/php/ext/mysqli/php_mysqli_structs.h:81:20: error: errmsg.h: No such file or directory /usr/local/php/include/php/ext/mysqli/php_mysqli_structs.h:82:21: error: my_list.h: No such file or directory /usr/local/php/include/php/ext/mysqli/php_mysqli_structs.h:83:22: error: m_string.h: No such file or directory /usr/local/php/include/php/ext/mysqli/php_mysqli_structs.h:84:26: error: mysqld_error.h: No such file or directory /usr/local/php/include/php/ext/mysqli/php_mysqli_structs.h:86:21: error: m_ctype.h: No such file or directory /usr/local/php/include/php/ext/mysqli/php_mysqli_structs.h:87:29: error: mysqli_libmysql.h: No such file or directory /data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable/swoole_mysql.c: In function ‘mysql_get_socket’: /data/shiliangxie/lamp/swoole-src-swoole-1.8.5-stable/swoole_mysql.c:299: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type /usr/include/string.h:536: note: expected ‘const char *’ but argument is of type ‘struct zend_string *’ make: *** [swoole_mysql.lo] Error 1 }}} 环境: {{{ PHP 7.0.6 (cli) (built: May 24 2016 19:42:04) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies }}} {{{ Linux version 3.10.0-1-tlinux2_kvm_guest-0013.tl1 (gcc version 4.4.6 20110731 (Red Hat 4.4.6-4) (GCC) ) #1 SMP Wed Apr 22 20:56:10 CST 2015 }}} {{{ # php -m | grep mysql mysqli mysqlnd pdo_mysql }}}
赞
0
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
登录
后参与评论
评论
2017-09-22
l
lee
这个问题应该是找不到mysql的头文件导致: 1.建议尝试定位头文件目录 sudo locate my_global.h 比如:/usr/include/mysql/my_global.h 2.编译的时候: ./configure --enable-async-mysql=/usr/include/mysql+其他参数
赞
0
回复
2017-09-22
c
clz
缺少头文件,如果要使用`async-mysql`建议自行编译PHP
赞
0
回复
2017-09-23
陈
陈金军
重新编译了PHP, {{{ ./configure --prefix=/usr/local/php --with-config-file-path=/etc/ --with-libxml-dir=/usr/local/libxml2 --with-png-dir=/usr/local/libpng/ --with-jpeg-dir=/usr/local/jpeg/ --with-freetype-dir=/usr/local/freetype/ --with-gd=/usr/local/gd/ --wit
赞
0
回复
2017-09-23
炎
炎
PHP7的redis扩展 和 redis client 都装上了。还是不行额。 [root@SWEBMYVMM002370 /data/shiliangxie/lamp/redis-3.2.0]# ./src/redis-server --version Redis server v=3.2.0 sha=00000000:0 malloc=jemalloc-4.0.3 bits=64 build=1d3f0ae5cf3ec46e [root@SWEBMYVMM002370 /data/shiliangx
赞
0
回复
2017-09-25
辉
辉
已经解决了,hiredis 库的问题。 抱歉,没有认真看文档, 刚把文档看完。 学习中。。。。
赞
0
回复