lnmp 安装失败
https://t.wss.ink/f/amcc1yfav0eupdate gcc 9.3 https://t.wss.ink/f/amdmucceqv7
gcc 9.3 安装失败 第一个日志典型的gcc版本问题,gcc版本为7.3
Building CXX object extra/protobuf/protobuf-3.19.4/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/any.pb.cc.o
/www/lnmp/src/mysql-8.0.30/extra/protobuf/protobuf-3.19.4/src/google/protobuf/any.pb.cc: 在构造函数‘constexpr google::protobuf::AnyDefaultTypeInternal::AnyDefaultTypeInternal()’中:
/www/lnmp/src/mysql-8.0.30/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
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
^
In file included from /www/lnmp/src/mysql-8.0.30/extra/protobuf/protobuf-3.19.4/src/google/protobuf/any.pb.cc:4:0:
/www/lnmp/src/mysql-8.0.30/extra/protobuf/protobuf-3.19.4/src/google/protobuf/any.pb.h:68:23: 附注:‘google::protobuf::Any’ is not literal because:
class PROTOBUF_EXPORT Any final :
^~~
/www/lnmp/src/mysql-8.0.30/extra/protobuf/protobuf-3.19.4/src/google/protobuf/any.pb.h:68:23: 附注:‘google::protobuf::Any’ has a non-trivial destructor
make: *** 错误 1
make: *** 错误 2
参考:https://bbs.vpser.net/thread-26293-1-1.html 说明
第二个日志
CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:45 (message):
The C++ compiler
"/usr/local/gcc-9.3.0/bin/g++"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /www/lnmp/src/mysql-8.0.30/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/gmake" "cmTC_f3dd7/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_f3dd7.dir/build.make CMakeFiles/cmTC_f3dd7.dir/build
gmake: 进入目录“/www/lnmp/src/mysql-8.0.30/build/CMakeFiles/CMakeTmp”
Building CXX object CMakeFiles/cmTC_f3dd7.dir/testCXXCompiler.cxx.o
/usr/local/gcc-9.3.0/bin/g++ -o CMakeFiles/cmTC_f3dd7.dir/testCXXCompiler.cxx.o -c /www/lnmp/src/mysql-8.0.30/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
Linking CXX executable cmTC_f3dd7
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f3dd7.dir/link.txt --verbose=1
/usr/local/gcc-9.3.0/bin/g++ CMakeFiles/cmTC_f3dd7.dir/testCXXCompiler.cxx.o-o cmTC_f3dd7
/usr/bin/ld: /usr/local/gcc-9.3.0/lib/gcc/aarch64-unknown-linux-gnu/9.3.0/../../../../lib64/libstdc++.so: undefined reference to `libiconv'
/usr/bin/ld: /usr/local/gcc-9.3.0/lib/gcc/aarch64-unknown-linux-gnu/9.3.0/../../../../lib64/libstdc++.so: undefined reference to `libiconv_close'
/usr/bin/ld: /usr/local/gcc-9.3.0/lib/gcc/aarch64-unknown-linux-gnu/9.3.0/../../../../lib64/libstdc++.so: undefined reference to `libiconv_open'
collect2: 错误:ld 返回 1
gmake: *** 错误 1
gmake: 离开目录“/www/lnmp/src/mysql-8.0.30/build/CMakeFiles/CMakeTmp”
gmake: *** 错误 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:554 (PROJECT)
可能gcc升级有问题导致的
aarch64下编译mysql可能会出现各种问题,lnmp2.0下可以用二进制版本进行安装 lnmp2.0
Notice: mysql-8.0.31-linux-glibc2.12-aarch64.tar.xz not found!!!download now...
--2023-03-03 13:33:20--https://cdn.mysql.com/Downloads/MySQL-8.0/mysql-8.0.31-linux-glibc2.12-aarch64.tar.xz
正在解析主机 cdn.mysql.com (cdn.mysql.com)... 23.192.208.228
正在连接 cdn.mysql.com (cdn.mysql.com)|23.192.208.228|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 404 Not Found
2023-03-03 13:33:26 错误 404:Not Found。
Notice: mysql-8.0.31-linux-glibc2.12-aarch64.tar.xz not found!!!download now...
--2023-03-03 13:33:26--https://cdn.mysql.com/archives/mysql-8.0/mysql-8.0.31-linux-glibc2.12-aarch64.tar.xz
正在解析主机 cdn.mysql.com (cdn.mysql.com)... 23.192.208.228
正在连接 cdn.mysql.com (cdn.mysql.com)|23.192.208.228|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 404 Not Found
2023-03-03 13:33:32 错误 404:Not Found。
页:
[1]