VPS侦探论坛

 找回密码
 注册
查看: 1625|回复: 4

lnmp 安装失败

[复制链接]
发表于 2023-3-1 17:43:27 | 显示全部楼层 |阅读模式

https://t.wss.ink/f/amcc1yfav0e

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


update gcc 9.3
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2023-3-1 20:44:32 | 显示全部楼层

https://t.wss.ink/f/amdmucceqv7

gcc 9.3 安装失败
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2023-3-2 10:02:04 | 显示全部楼层



第一个日志典型的gcc版本问题,gcc版本为7.3
[  1%] 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(:ROTOBUF_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[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
make[1]: *** [CMakeFiles/Makefile2:1983:extra/protobuf/protobuf-3.19.4/cmake/CMakeFiles/libprotobuf.dir/all] 错误 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[1]: 进入目录“/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]: *** [CMakeFiles/cmTC_f3dd7.dir/build.make:87:cmTC_f3dd7] 错误 1
    gmake[1]: 离开目录“/www/lnmp/src/mysql-8.0.30/build/CMakeFiles/CMakeTmp”
    gmake: *** [Makefile:121:cmTC_f3dd7/fast] 错误 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下可以用二进制版本进行安装
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2023-3-3 13:49:48 | 显示全部楼层

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。

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

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-21 18:33 , Processed in 0.026070 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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