VPS侦探论坛

 找回密码
 注册
查看: 1021|回复: 10

swoole-src-4.8.12安装报错,lnmp.2.0

[复制链接]
发表于 2023-9-14 18:46:54 | 显示全部楼层 |阅读模式

本帖最后由 binaA 于 2023-9-14 18:52 编辑

麻烦各位大佬看下,或有大佬遇到?




php7.4  lnmp.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: *** [Makefile:192: ext-src/php_swoole.lo] Error 1





补充内容 (2023-9-14 19:08):
https://t.wss.ink/f/c6lem7wolsf   错误地址
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2023-9-16 00:32:48 | 显示全部楼层


binaA 发表于 2023-9-14 23:14
Alibaba Cloud Linux 3.2104 LTS 64位 SCC版Linux64位

已解决,换成cenos7.9系统就ok
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2023-9-14 18:51:17 | 显示全部楼层

php7.4  lnmp.2.0  安装swoole安装报错
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2023-9-14 20:11:14 | 显示全部楼层



什么系统及版本?
没使用 ./addons.sh install swoole 安装?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2023-9-14 22:56:30 | 显示全部楼层

licess 发表于 2023-9-14 20:11
什么系统及版本?
没使用 ./addons.sh install swoole 安装?

我用传统安装包解压,和用你这个命令安装 都安装失败

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2023-9-14 22:57:47 | 显示全部楼层

  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: *** [Makefile:192: ext-src/php_swoole.lo] Error 1
/root/lnmp1.9/src
Restarting php-fpm......
Gracefully shutting down php-fpm . done
Starting php-fpm [14-Sep-2023 22:51:33] 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!
 楼主| 发表于 2023-9-14 23:04:55 | 显示全部楼层

licess 发表于 2023-9-14 20:11
什么系统及版本?
没使用 ./addons.sh install swoole 安装?

阿里的 Alibaba Cloud Linux系统,lnmp.1.9安装包
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2023-9-14 23:14:39 | 显示全部楼层

licess 发表于 2023-9-14 20:11
什么系统及版本?
没使用 ./addons.sh install swoole 安装?

Alibaba Cloud Linux 3.2104 LTS 64位 SCC版Linux64位
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2023-9-15 09:57:39 | 显示全部楼层

binaA 发表于 2023-9-14 23:14
Alibaba Cloud Linux 3.2104 LTS 64位 SCC版Linux64位

swoole与新版本系统的兼容性只能找swoole官方
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2023-9-15 10:03:27 | 显示全部楼层



军哥有空帮忙 看下,lnmp1.9 lnmp2.0  安装swoole扩展都失败

下面是安装失败的截图
https://t.wss.ink/f/c6rs5aeop6r
 楼主| 发表于 2023-9-15 10:29:27 | 显示全部楼层

licess 发表于 2023-9-15 09:57
swoole与新版本系统的兼容性只能找swoole官方

我之前自己用传统的解压包方式是可以安装swoole的,我再试试吧,看是不是服务器的系统更新了的原因
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-5-5 00:23 , Processed in 0.029667 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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