【待反馈】宝塔在php7.4下安装swoole失败
本帖最后由 堡塔运维小林 于 2023-5-11 14:51 编辑宝塔版本:免费版 7.9.3
宝塔在php7.4下安装swoole,安装成功后运行命令:php --ri swoole报错:Extension 'swoole' not present.
在php -m下也没有。但是在phpinfo中有
安装完后。已经重启过php,重启过服务器了,都不行。 本帖最后由 堡塔运维小林 于 2023-5-11 14:58 编辑
您好,安装swoole后,请截图看一下执行日志中是否有报错信息,并检查一下您命令行中使用的php版本是多少,这个可能是您的系统中有多个php版本,在命令行中执行命令的版本可能不是php7.4的版本,所以会出现这样的情况,请选择好7.4版本后再去执行您上面的命令 本帖最后由 lippor 于 2023-5-11 23:40 编辑
堡塔运维小林 发表于 2023-5-11 14:51
您好,安装swoole后,请截图看一下执行日志中是否有报错信息,并检查一下您命令行中使用的php版本是多少, ...
没有报错,安装过程很顺利,但是运行命令php --ri swoole就报错:Extension 'swoole' not present
https://cp.chimir.com/img/1.png
https://cp.chimir.com/img/2.pnghttps://cp.chimir.com/img/3.png
我今晚把所有版本都删除,只重新安装了一个php7.4,命令行版本也是php7.4,但是还是不行
本帖最后由 lippor 于 2023-5-11 23:45 编辑
其他日志还在哪里看 lippor 发表于 2023-5-11 23:36
没有报错,安装过程很顺利,但是运行命令php --ri swoole就报错:Extension 'swoole' not present
您好,私信您的todesk或者向日葵给我,我远程排查一下,私信后这里回复一下 有解决吗?PHP Warning:PHP Startup: Unable to load dynamic library 'swoole.so' (tried: /usr/lib/php/20190902/swoole.so (/usr/lib/php/20190902/swoole.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/swoole.so.so (/usr/lib/php/20190902/swoole.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 本帖最后由 宝塔用_39f4 于 2024-10-14 17:41 编辑
/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: *** Error 1
error
|-Successify --- 命令已执行! ---
也是安装swoole失败了 什么原因?这是安装详情
页:
[1]