swoole-src-4.8.12安装报错,lnmp.2.0
本帖最后由 binaA 于 2023-9-14 18:52 编辑麻烦各位大佬看下,或有大佬遇到?
https://asdfz.up.vpser.net/bbs/ab_icon.gif
https://asdfz.up.vpser.net/bbs/bwg200.png
https://asdfz.up.vpser.net/bbs/locvps100.gif
php7.4lnmp.2.0安装swoole安装报错
/usr/include/c++/10/bits/stl_multiset.h:114:67: error: expected primary-expression before ‘;’ token
/usr/include/c++/10/bits/stl_multiset.h:113:20: error: expected ‘,’ before ‘;’ token
113 | static_assert(is_same<typename _Alloc::value_type, _Key>::value,
| ^
| ,
114 | "std::multiset must have the same value_type as its allocator");
| ~
/usr/include/c++/10/bits/stl_multiset.h:114:67: error: expected string-literal before ‘;’ token
114 | "std::multiset must have the same value_type as its allocator");
| ^
/usr/include/c++/10/bits/stl_multiset.h:113:20: error: expected ‘)’ before ‘;’ token
113 | static_assert(is_same<typename _Alloc::value_type, _Key>::value,
| ^
| )
114 | "std::multiset must have the same value_type as its allocator");
| ~
make: *** Error 1
补充内容 (2023-9-14 19:08):
https://t.wss.ink/f/c6lem7wolsf 错误地址 binaA 发表于 2023-9-14 23:14
Alibaba Cloud Linux 3.2104 LTS 64位 SCC版Linux64位
已解决,换成cenos7.9系统就ok php7.4lnmp.2.0安装swoole安装报错 什么系统及版本?
没使用 ./addons.sh install swoole 安装? licess 发表于 2023-9-14 20:11
什么系统及版本?
没使用 ./addons.sh install swoole 安装?
我用传统安装包解压,和用你这个命令安装 都安装失败 113 | static_assert(is_same<typename _Alloc::value_type, _Key>::value,
| ^
| ,
114 | "std::multiset must have the same value_type as its allocator");
| ~
/usr/include/c++/10/bits/stl_multiset.h:114:67: error: expected string-literal before ‘;’ token
114 | "std::multiset must have the same value_type as its allocator");
| ^
/usr/include/c++/10/bits/stl_multiset.h:113:20: error: expected ‘)’ before ‘;’ token
113 | static_assert(is_same<typename _Alloc::value_type, _Key>::value,
| ^
| )
114 | "std::multiset must have the same value_type as its allocator");
| ~
make: *** Error 1
/root/lnmp1.9/src
Restarting php-fpm......
Gracefully shutting down php-fpm . done
Starting php-fpm NOTICE: PHP message: PHP Warning:PHP Startup: Unable to load dynamic library 'swoole.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/swoole.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/swoole.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/swoole.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/swoole.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
done
PHP Swoole install failed!
licess 发表于 2023-9-14 20:11
什么系统及版本?
没使用 ./addons.sh install swoole 安装?
阿里的 Alibaba Cloud Linux系统,lnmp.1.9安装包 licess 发表于 2023-9-14 20:11
什么系统及版本?
没使用 ./addons.sh install swoole 安装?
Alibaba Cloud Linux 3.2104 LTS 64位 SCC版Linux64位 binaA 发表于 2023-9-14 23:14
Alibaba Cloud Linux 3.2104 LTS 64位 SCC版Linux64位
swoole与新版本系统的兼容性只能找swoole官方 军哥有空帮忙 看下,lnmp1.9 lnmp2.0安装swoole扩展都失败
下面是安装失败的截图
https://t.wss.ink/f/c6rs5aeop6r licess 发表于 2023-9-15 09:57
swoole与新版本系统的兼容性只能找swoole官方
我之前自己用传统的解压包方式是可以安装swoole的,我再试试吧,看是不是服务器的系统更新了的原因
页:
[1]