VPS侦探论坛

标题: lnmp1.9-full 安装mysql8.0失败 [打印本页]

作者: Jeremy    时间: 2022-7-29 15:28
标题: lnmp1.9-full 安装mysql8.0失败
操作系统:统信服务器欧拉版V20 1050e  arm64
主机规格:鲲鹏920 8核、16G、600G


使用 ./install.sh db 安装 mysql 8.0 失败 ,附件为日志


  1. <div>[  1%] Building CXX object extra/protobuf/protobuf-3.19.4/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/any.pb.cc.o
  2. /usr/local/src/lnmp1.9-full/src/mysql-8.0.29/extra/protobuf/protobuf-3.19.4/src/google/protobuf/any.pb.cc: 在构造函数‘constexpr google::protobuf::AnyDefaultTypeInternal::AnyDefaultTypeInternal()’中:
  3. /usr/local/src/lnmp1.9-full/src/mysql-8.0.29/extra/protobuf/protobuf-3.19.4/src/google/protobuf/any.pb.cc:27:76: 错误:temporary of non-literal type ‘google::protobuf::Any’ in a constant expression
  4.      : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  5.                                                                             ^
  6. In file included from /usr/local/src/lnmp1.9-full/src/mysql-8.0.29/extra/protobuf/protobuf-3.19.4/src/google/protobuf/any.pb.cc:4:0:
  7. /usr/local/src/lnmp1.9-full/src/mysql-8.0.29/extra/protobuf/protobuf-3.19.4/src/google/protobuf/any.pb.h:68:23: 附注:‘google::protobuf::Any’ is not literal because:
  8. class PROTOBUF_EXPORT Any final :
  9.                        ^~~
  10. /usr/local/src/lnmp1.9-full/src/mysql-8.0.29/extra/protobuf/protobuf-3.19.4/src/google/protobuf/any.pb.h:68:23: 附注:  ‘google::protobuf::Any’ has a non-trivial destructor
  11. make[2]: *** [extra/protobuf/protobuf-3.19.4/cmake/CMakeFiles/libprotobuf.dir/build.make:492:extra/protobuf/protobuf-3.19.4/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/any.pb.cc.o] 错误 1
  12. make[2]: 离开目录“/usr/local/src/lnmp1.9-full/src/mysql-8.0.29/build”
  13. make[1]: *** [CMakeFiles/Makefile2:6592:extra/protobuf/protobuf-3.19.4/cmake/CMakeFiles/libprotobuf.dir/all] 错误 2
  14. make[1]: 离开目录“/usr/local/src/lnmp1.9-full/src/mysql-8.0.29/build”
  15. make: *** [Makefile:163:all] 错误 2</div>
复制代码



作者: Jeremy    时间: 2022-7-29 15:32
上传 7z 提示不支持,上传 zip 提示有敏感词,改了几次后提示没有上传次数
作者: licess    时间: 2022-7-29 20:19
Jeremy 发表于 2022-7-29 15:32
上传 7z 提示不支持,上传 zip 提示有敏感词,改了几次后提示没有上传次数 ...

没有arm64的设备不清楚兼容性,甲骨文aarch64测试是没有问题的

问题反馈必读要求上传指定网盘
作者: Jeremy    时间: 2022-7-29 21:20
licess 发表于 2022-7-29 20:19
没有arm64的设备不清楚兼容性,甲骨文aarch64测试是没有问题的

按问题反馈必读要求上传指定网盘 ...

安装myql 5.7与 mariadb 10.6都正常,只有装mysql 8.0出错

日志:https://t.wss.ink/f/8x0g863qdhn 复制链接到浏览器打开
作者: licess    时间: 2022-7-30 14:25
Jeremy 发表于 2022-7-29 21:20
安装myql 5.7与 mariadb 10.6都正常,只有装mysql 8.0出错

日志:https://t.wss.ink/f/8x0g863qdhn 复 ...

应该是gcc 7.3版本bug导致的,可以尝试升级到gcc 8.x或更高版本后再安装
作者: Jeremy    时间: 2022-8-3 14:25
licess 发表于 2022-7-30 14:25
应该是gcc 7.3版本bug导致的,可以尝试升级到gcc 8.x或更高版本后再安装

今天测试修改默认mysql8.0.29版本为mysql8.0.28安装成功

https://t.wss.ink/f/8ycvlbydd57 复制链接到浏览器打开




欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/) Powered by Discuz! X3.4