VPS侦探论坛

 找回密码
 注册
查看: 3234|回复: 5

树莓派4b 安装lnmp失败

[复制链接]
发表于 2021-3-8 00:55:32 | 显示全部楼层 |阅读模式

系统最新的raspberry OS
选择安装软件mysql8.0+ php7.4 Jemalloc
安装失败 麻烦军哥看看

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2021-3-8 09:07:16 | 显示全部楼层


[ 59%] Linking CXX executable ../../../../runtime_output_directory/protoc
/usr/bin/ld: ../../../../library_output_directory/libprotobuf.so.3.6.1: undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
make[2]: *** [extra/protobuf/protobuf-3.6.1/cmake/CMakeFiles/protoc.dir/build.make:87: runtime_output_directory/protoc] Error 1
make[1]: *** [CMakeFiles/Makefile2:1232: extra/protobuf/protobuf-3.6.1/cmake/CMakeFiles/protoc.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 59%] Linking CXX executable ../../../../runtime_output_directory/mysqlrouter_plugin_info
[ 59%] Built target mysqlrouter_plugin_info
[ 59%] Linking CXX executable ../../../runtime_output_directory/pfs_account-oom-t
/usr/bin/ld: ../libperfschema.a(pfs_digest.cc.o): in function `PFS_statements_digest_stat::reset_data(unsigned char*, unsigned int, char*)':
/usr/include/c++/8/bits/atomic_base.h:374: undefined reference to `__atomic_store_8'
/usr/bin/ld: ../libperfschema.a(pfs_instr.cc.o): in function `init_instruments(PFS_global_param const*)':
/usr/include/c++/8/bits/atomic_base.h:374: undefined reference to `__atomic_store_8'
/usr/bin/ld: ../libperfschema.a(pfs_instr.cc.o): in function `create_thread(PFS_thread_class*, void const*, unsigned long long)':
/usr/include/c++/8/bits/atomic_base.h:514: undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: ../libperfschema.a(pfs_histogram.cc.o): in function `PFS_histogram::reset()':
/usr/include/c++/8/bits/atomic_base.h:374: undefined reference to `__atomic_store_8'
/usr/bin/ld: ../libperfschema.a(pfs.cc.o): in function `pfs_end_statement_v2(PSI_statement_locker*, void*)':
/usr/include/c++/8/bits/atomic_base.h:396: undefined reference to `__atomic_load_8'
/usr/bin/ld: /usr/include/c++/8/bits/atomic_base.h:514: undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: /usr/include/c++/8/bits/atomic_base.h:514: undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: /usr/include/c++/8/bits/atomic_base.h:514: undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: /usr/include/c++/8/bits/atomic_base.h:374: undefined reference to `__atomic_store_8'
/usr/bin/ld: ../../../archive_output_directory/libmysys.a(my_rdtsc.cc.o): in function `my_timer_microseconds()':
/usr/include/c++/8/bits/atomic_base.h:374: undefined reference to `__atomic_store_8'
/usr/bin/ld: /usr/include/c++/8/bits/atomic_base.h:396: undefined reference to `__atomic_load_8'
/usr/bin/ld: /usr/include/c++/8/bits/atomic_base.h:514: undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
make[2]: *** [storage/perfschema/unittest/CMakeFiles/pfs_account-oom-t.dir/build.make:99: runtime_output_directory/pfs_account-oom-t] Error 1
make[1]: *** [CMakeFiles/Makefile2:3253: storage/perfschema/unittest/CMakeFiles/pfs_account-oom-t.dir/all] Error 2


这个是mysql 8.0的兼容性问题,可以参考:https://bbs.vpser.net/thread-19261-1-1.html 试一下
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2021-3-8 16:48:56 | 显示全部楼层

licess 发表于 2021-3-8 09:07
这个是mysql 8.0的兼容性问题,可以参考:https://bbs.vpser.net/thread-19261-1-1.html 试一下 ...

尝试后还是失败 麻烦再看下
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2021-3-8 16:49:10 | 显示全部楼层



以下是日志 (部分删减)

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2021-3-9 08:14:49 | 显示全部楼层

garbo 发表于 2021-3-8 16:49
以下是日志 (部分删减)

修复方法之前用户的反馈看是可以修复该错误的,我们没有该设备无法测试
错误和之前还是完全一样,可能未正确修改或修改后又重新下载的安装包安装的

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

 楼主| 发表于 2021-3-10 22:22:57 | 显示全部楼层

本帖最后由 garbo 于 2021-3-10 22:25 编辑
licess 发表于 2021-3-9 08:14
修复方法之前用户的反馈看是可以修复该错误的,我们没有该设备无法测试
错误和之前还是完全一样,可能未正 ...
  1. mkdir build && cd build
  2.     cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DSYSCONFDIR=/etc -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DEXTRA_CHARSETS=all -DDEFAULT_CHARSET=utf8mb4 -DDEFAULT_COLLATION=utf8mb4_general_ci -DWITH_EMBEDDED_SERVER=1 -DENABLED_LOCAL_INFILE=1 ${MySQL_WITH_BOOST} -DCMAKE_SHARED_LINKER_FLAGS='-latomic'
  3.     Make_Install
复制代码

确实已经修改 但可能不止这个问题  如果没设备也没办法进一步排查 先谢谢军哥了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-21 02:48 , Processed in 0.027419 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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