VPS侦探论坛

 找回密码
 注册
查看: 4021|回复: 2

arm装mysql8问题

[复制链接]
发表于 2020-1-6 21:06:28 | 显示全部楼层 |阅读模式

rpi升级时报错:
  1. <div style="display:inline-block;white-space:pre;background-color:#0C0C0C;font-family:'Consolas',monospace;font-size:12pt;padding:4px;"><span style="color:#CCCCCC;background-color:#0C0C0C;">[ 26%] Linking CXX executable ../../../../runtime_output_directory/protoc
  2. ../../../../library_output_directory/libprotobuf.so.3.6.1: error: undefined reference to '__atomic_fetch_add_8'
  3. collect2: error: ld returned 1 exit status
  4. make[2]: *** [extra/protobuf/protobuf-3.6.1/cmake/CMakeFiles/protoc.dir/build.make:87: runtime_output_directory/protoc] Error 1
  5. make[1]: *** [CMakeFiles/Makefile2:937: extra/protobuf/protobuf-3.6.1/cmake/CMakeFiles/protoc.dir/all] Error 2
  6. make: *** [Makefile:163: all] Error 2</span></div>
复制代码

经查需要添加-latomic
reference:
https://github.com/alexa/avs-device-sdk/issues/1404
https://github.com/antirez/redis/issues/6275
另外脚本里mysql8下载镜像在中科大,中科大的http://mirrors.ustc.edu.cn/mysql-ftp/Downloads/MySQL-8.0/路径下只有8.0.16-8.0.18,其他8.0.x版本会失败
最后再问一句,1.7会发测试版吗?



美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2020-1-7 10:27:18 | 显示全部楼层


不管是科大还是官方下载镜像上都是只有当前最新版往前2个版本
1.7在github上已经push上很长时间了,最近会打包发布
我这边目前没有树莓派的设备没法测试
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2020-2-25 07:36:58 | 显示全部楼层

licess 发表于 2020-1-7 10:27
不管是科大还是官方下载镜像上都是只有当前最新版往前2个版本
1.7在github上已经push上很长时间了,最近会 ...

军哥,闲着无聊测试了一下,cmake加上
-DCMAKE_CXX_FLAGS=-latomic
就可以了,不过给CMakeLists.txt写个patch可能会好点
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-10-18 13:29 , Processed in 0.025740 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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