安装报错
来源:3-2 Swoole源码安装
慕工程1225957
2018-09-12
./configure --with-php-config=/usr/local/php/bin/php-config
creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
make test
/swoole_runtime.o
/usr/local/src/swoole-src/swoole_runtime.cc: 在函数‘int socket_xport_api(php_stream*, swoole::Socket*, php_stream_xport_param*)’中:
/usr/local/src/swoole-src/swoole_runtime.cc:554:50: 错误:‘GET_VER_OPT_STRING’在此作用域中尚未声明
GET_VER_OPT_STRING("local_cert", certfile);
^
/usr/local/src/swoole-src/swoole_runtime.cc:563:15: 错误:‘class swoole::Socket’没有名为‘ssl_option’的成员
sock->ssl_option.cert_file = sw_strdup(certfile);
^
/usr/local/src/swoole-src/swoole_runtime.cc:564:15: 错误:‘class swoole::Socket’没有名为‘ssl_option’的成员
sock->ssl_option.key_file = sw_strdup(private_key);
^
/usr/local/src/swoole-src/swoole_runtime.cc:550:16: 警告:未使用的变量‘val’ [-Wunused-variable]
{ zval *val = NULL;
^
make: *** [swoole_runtime.lo] 错误 1
写回答
1回答
-
直接make && make install 可以吗,不使用make test命令
012018-09-13
相似问题