树莓派4b 安装lnmp失败
系统最新的raspberry OS选择安装软件mysql8.0+ php7.4 Jemalloc
安装失败 麻烦军哥看看
[ 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: *** Error 1
make: *** Error 2
make: *** 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: *** Error 1
make: *** Error 2
这个是mysql 8.0的兼容性问题,可以参考:https://bbs.vpser.net/thread-19261-1-1.html 试一下 licess 发表于 2021-3-8 09:07
这个是mysql 8.0的兼容性问题,可以参考:https://bbs.vpser.net/thread-19261-1-1.html 试一下 ...
尝试后还是失败 麻烦再看下 以下是日志 (部分删减) garbo 发表于 2021-3-8 16:49
以下是日志 (部分删减)
修复方法之前用户的反馈看是可以修复该错误的,我们没有该设备无法测试
错误和之前还是完全一样,可能未正确修改或修改后又重新下载的安装包安装的 本帖最后由 garbo 于 2021-3-10 22:25 编辑
licess 发表于 2021-3-9 08:14
修复方法之前用户的反馈看是可以修复该错误的,我们没有该设备无法测试
错误和之前还是完全一样,可能未正 ...
mkdir build && cd build
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'
Make_Install
确实已经修改 但可能不止这个问题如果没设备也没办法进一步排查 先谢谢军哥了
页:
[1]