当前位置:论坛首页 > Linux面板 > 求助

安装[swoole4-74] [swoole5-80]都无法安装

发表在 Linux面板2024-3-31 11:39 [复制链接] 0 220

本帖最后由 玉面飞龙 于 2024-3-31 11:41 编辑

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:

面板8.05,php7.4安卓swoole4失败,php8安装swoole5也是失败
系统版本:

CentOS 8.4.2105 x86_64(Py3.7.9)
问题描述:

安装swoole失败
相关截图(日志、错误):


/usr/include/c++/8/thread:120:15: error: expected ‘)’ before ‘;’ token
static_assert( __is_invocable<typename decay<_Callable>::type,
^
)
/usr/include/c++/8/thread:123:5:
);
~
In file included from /usr/include/c++/8/set:61,
from /root/swoole-4.8.13/include/swoole_util.h:26,
from /root/swoole-4.8.13/ext-src/php_swoole_cxx.h:21,
from /root/swoole-4.8.13/ext-src/php_swoole.cc:16:
/usr/include/c++/8/bits/stl_set.h: At global scope:
/usr/include/c++/8/bits/stl_set.h:109:62: error: expected ‘(’ before ‘;’ token
"std::set must have a non-const, non-volatile value_type");
^
(
/usr/include/c++/8/bits/stl_set.h:109:62: error: expected primary-expression before ‘;’ token
/usr/include/c++/8/bits/stl_set.h:108:20: error: expected ‘,’ before ‘;’ token
static_assert(is_same<typename remove_cv<_Key>::type, _Key>::value,
^
,
"std::set must have a non-const, non-volatile value_type");
~
/usr/include/c++/8/bits/stl_set.h:109:62: error: expected string-literal before ‘;’ token
"std::set must have a non-const, non-volatile value_type");
^
/usr/include/c++/8/bits/stl_set.h:108:20: error: expected ‘)’ before ‘;’ token
static_assert(is_same<typename remove_cv<_Key>::type, _Key>::value,
^
)
"std::set must have a non-const, non-volatile value_type");
~
/usr/include/c++/8/bits/stl_set.h:112:62: error: expected ‘(’ before ‘;’ token
"std::set must have the same value_type as its allocator");
^
(
/usr/include/c++/8/bits/stl_set.h:112:62: error: expected primary-expression before ‘;’ token
/usr/include/c++/8/bits/stl_set.h:111:20: error: expected ‘,’ before ‘;’ token
static_assert(is_same<typename _Alloc::value_type, _Key>::value,
^
,
"std::set must have the same value_type as its allocator");
~
/usr/include/c++/8/bits/stl_set.h:112:62: error: expected string-literal before ‘;’ token
"std::set must have the same value_type as its allocator");
^
/usr/include/c++/8/bits/stl_set.h:111:20: error: expected ‘)’ before ‘;’ token
static_assert(is_same<typename _Alloc::value_type, _Key>::value,
^
)
"std::set must have the same value_type as its allocator");
~
In file included from /usr/include/c++/8/set:62,
from /root/swoole-4.8.13/include/swoole_util.h:26,
from /root/swoole-4.8.13/ext-src/php_swoole_cxx.h:21,
from /root/swoole-4.8.13/ext-src/php_swoole.cc:16:
/usr/include/c++/8/bits/stl_multiset.h:111:67: error: expected ‘(’ before ‘;’ token
"std::multiset must have a non-const, non-volatile value_type");
^
(
/usr/include/c++/8/bits/stl_multiset.h:111:67: error: expected primary-expression before ‘;’ token
/usr/include/c++/8/bits/stl_multiset.h:110:20: error: expected ‘,’ before ‘;’ token
static_assert(is_same<typename remove_cv<_Key>::type, _Key>::value,
^
,
"std::multiset must have a non-const, non-volatile value_type");
~
/usr/include/c++/8/bits/stl_multiset.h:111:67: error: expected string-literal before ‘;’ token
"std::multiset must have a non-const, non-volatile value_type");
^
/usr/include/c++/8/bits/stl_multiset.h:110:20: error: expected ‘)’ before ‘;’ token
static_assert(is_same<typename remove_cv<_Key>::type, _Key>::value,
^
)
"std::multiset must have a non-const, non-volatile value_type");
~
/usr/include/c++/8/bits/stl_multiset.h:114:67: error: expected ‘(’ before ‘;’ token
"std::multiset must have the same value_type as its allocator");
^
(
/usr/include/c++/8/bits/stl_multiset.h:114:67: error: expected primary-expression before ‘;’ token
/usr/include/c++/8/bits/stl_multiset.h:113:20: error: expected ‘,’ before ‘;’ token
static_assert(is_same<typename _Alloc::value_type, _Key>::value,
^
,
"std::multiset must have the same value_type as its allocator");
~
/usr/include/c++/8/bits/stl_multiset.h:114:67: error: expected string-literal before ‘;’ token
"std::multiset must have the same value_type as its allocator");
^
/usr/include/c++/8/bits/stl_multiset.h:113:20: error: expected ‘)’ before ‘;’ token
static_assert(is_same<typename _Alloc::value_type, _Key>::value,
^
)
"std::multiset must have the same value_type as its allocator");
~
make: *** [Makefile:192: ext-src/php_swoole.lo] Error 1
error
|-Successify --- 命令已执行! ---


使用道具 举报 只看该作者 回复
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理

工作时间:09:00至24:00

快速回复 返回顶部 返回列表