VPS侦探论坛

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

lnmp1.6安装mysql8.0.15失败

[复制链接]
发表于 2019-4-26 15:01:22 | 显示全部楼层 |阅读模式

服务器配置:16G内存

2T硬盘
CentOS Linux release 7.5.1804 (Core) 4.9.168-xxxx-std-ipv6-64

安装环境:
nginx-1.14.2
mysql-8.0.15
php-7.3.4


安装mysql失败:
[ 63%] Building CXX object sql/CMakeFiles/sql_main.dir/json_dom.cc.o
/root/lnmp1.6/src/mysql-8.0.15/sql/json_dom.cc: In function ‘Json_dom_ptr merge_doms(Json_dom_ptr, Json_dom_ptr)’:
/root/lnmp1.6/src/mysql-8.0.15/sql/json_dom.cc:112:12: error: cannot bind ‘Json_object_ptr {aka std::unique_ptr<Json_object>}’ lvalue to ‘std::unique_ptr<Json_object>&&’
     return left_object;
            ^
In file included from /usr/include/c++/4.8.2/memory:81:0,
                 from /root/lnmp1.6/src/mysql-8.0.15/sql/json_dom.h:29,
                 from /root/lnmp1.6/src/mysql-8.0.15/sql/json_dom.cc:23:
/usr/include/c++/4.8.2/bits/unique_ptr.h:169:2: error:   initializing argument 1 of ‘std::unique_ptr<_Tp, _Dp>::unique_ptr(std::unique_ptr<_Up, _Ep>&&) [with _Up = Json_object; _Ep = std::default_delete<Json_object>; <template-parameter-2-3> = void; _Tp = Json_dom; _Dp = std::default_delete<Json_dom>]’
  unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept
  ^
/root/lnmp1.6/src/mysql-8.0.15/sql/json_dom.cc:125:10: error: cannot bind ‘Json_array_ptr {aka std::unique_ptr<Json_array>}’ lvalue to ‘std::unique_ptr<Json_array>&&’
   return left_array;
          ^
In file included from /usr/include/c++/4.8.2/memory:81:0,
                 from /root/lnmp1.6/src/mysql-8.0.15/sql/json_dom.h:29,
                 from /root/lnmp1.6/src/mysql-8.0.15/sql/json_dom.cc:23:
/usr/include/c++/4.8.2/bits/unique_ptr.h:169:2: error:   initializing argument 1 of ‘std::unique_ptr<_Tp, _Dp>::unique_ptr(std::unique_ptr<_Up, _Ep>&&) [with _Up = Json_array; _Ep = std::default_delete<Json_array>; <template-parameter-2-3> = void; _Tp = Json_dom; _Dp = std::default_delete<Json_dom>]’
  unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept
  ^
/root/lnmp1.6/src/mysql-8.0.15/sql/json_dom.cc: In member function ‘virtual Json_dom_ptr Json_object::clone() const’:
/root/lnmp1.6/src/mysql-8.0.15/sql/json_dom.cc:1010:10: error: cannot bind ‘Json_object_ptr {aka std::unique_ptr<Json_object>}’ lvalue to ‘std::unique_ptr<Json_object>&&’
   return o;
          ^
In file included from /usr/include/c++/4.8.2/memory:81:0,
                 from /root/lnmp1.6/src/mysql-8.0.15/sql/json_dom.h:29,
                 from /root/lnmp1.6/src/mysql-8.0.15/sql/json_dom.cc:23:
/usr/include/c++/4.8.2/bits/unique_ptr.h:169:2: error:   initializing argument 1 of ‘std::unique_ptr<_Tp, _Dp>::unique_ptr(std::unique_ptr<_Up, _Ep>&&) [with _Up = Json_object; _Ep = std::default_delete<Json_object>; <template-parameter-2-3> = void; _Tp = Json_dom; _Dp = std::default_delete<Json_dom>]’
  unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept
  ^
/root/lnmp1.6/src/mysql-8.0.15/sql/json_dom.cc: In member function ‘virtual Json_dom_ptr Json_array::clone() const’:
/root/lnmp1.6/src/mysql-8.0.15/sql/json_dom.cc:1150:10: error: cannot bind ‘Json_array_ptr {aka std::unique_ptr<Json_array>}’ lvalue to ‘std::unique_ptr<Json_array>&&’
   return vv;
          ^
In file included from /usr/include/c++/4.8.2/memory:81:0,
                 from /root/lnmp1.6/src/mysql-8.0.15/sql/json_dom.h:29,
                 from /root/lnmp1.6/src/mysql-8.0.15/sql/json_dom.cc:23:
/usr/include/c++/4.8.2/bits/unique_ptr.h:169:2: error:   initializing argument 1 of ‘std::unique_ptr<_Tp, _Dp>::unique_ptr(std::unique_ptr<_Up, _Ep>&&) [with _Up = Json_array; _Ep = std::default_delete<Json_array>; <template-parameter-2-3> = void; _Tp = Json_dom; _Dp = std::default_delete<Json_dom>]’
  unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept
  ^
/root/lnmp1.6/src/mysql-8.0.15/sql/json_dom.cc: In function ‘Json_dom_ptr merge_doms(Json_dom_ptr, Json_dom_ptr)’:
/root/lnmp1.6/src/mysql-8.0.15/sql/json_dom.cc:127:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/root/lnmp1.6/src/mysql-8.0.15/sql/json_dom.cc: In member function ‘virtual Json_dom_ptr Json_object::clone() const’:
/root/lnmp1.6/src/mysql-8.0.15/sql/json_dom.cc:1012:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/root/lnmp1.6/src/mysql-8.0.15/sql/json_dom.cc: In member function ‘virtual Json_dom_ptr Json_array::clone() const’:
/root/lnmp1.6/src/mysql-8.0.15/sql/json_dom.cc:1152:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[2]: *** [sql/CMakeFiles/sql_main.dir/json_dom.cc.o] Error 1
make[1]: *** [sql/CMakeFiles/sql_main.dir/all] Error 2
make: *** [all] Error 2
include/mysql.sh: line 711: /usr/local/mysql/bin/mysqld: No such file or directory
mysql.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig mysql on
/etc/init.d/mysql: line 239: my_print_defaults: command not found
Starting MySQL ERROR! Couldn't find MySQL server (/usr/local/mysql/bin/mysqld_safe)
/etc/init.d/mysql: line 239: my_print_defaults: command not found
/etc/init.d/mysql: line 239: my_print_defaults: command not found
ERROR! MySQL server PID file could not be found!
/etc/init.d/mysql: line 239: my_print_defaults: command not found
Starting MySQL ERROR! Couldn't find MySQL server (/usr/local/mysql/bin/mysqld_safe)
include/mysql.sh: line 50: /usr/local/mysql/bin/mysqladmin: No such file or directory
failed, try other way...
/etc/init.d/mysql: line 239: my_print_defaults: command not found
/etc/init.d/mysql: line 239: my_print_defaults: command not found
ERROR! MySQL server PID file could not be found!
/etc/init.d/mysql: line 239: my_print_defaults: command not found
Starting MySQL ERROR! Couldn't find MySQL server (/usr/local/mysql/bin/mysqld_safe)
include/mysql.sh: line 63: /usr/local/mysql/bin/mysql: No such file or directory
Set password failed!
/etc/init.d/mysql: line 239: my_print_defaults: command not found
/etc/init.d/mysql: line 239: my_print_defaults: command not found
ERROR! MySQL server PID file could not be found!
/etc/init.d/mysql: line 239: my_print_defaults: command not found
Starting MySQL ERROR! Couldn't find MySQL server (/usr/local/mysql/bin/mysqld_safe)
include/main.sh: line 681: /usr/local/mysql/bin/mysql: No such file or directory
Update root password...
include/main.sh: line 681: /usr/local/mysql/bin/mysql: No such file or directory
... Failed!
Remove anonymous users...
include/main.sh: line 681: /usr/local/mysql/bin/mysql: No such file or directory
include/main.sh: line 681: /usr/local/mysql/bin/mysql: No such file or directory
... Failed!
Disallow root login remotely...
include/main.sh: line 681: /usr/local/mysql/bin/mysql: No such file or directory
... Failed!
Remove test database...
include/main.sh: line 681: /usr/local/mysql/bin/mysql: No such file or directory
... Failed!
Reload privilege tables...
include/main.sh: line 681: /usr/local/mysql/bin/mysql: No such file or directory
... Failed!
/etc/init.d/mysql: line 239: my_print_defaults: command not found
/etc/init.d/mysql: line 239: my_print_defaults: command not found
ERROR! MySQL server PID file could not be found!
/etc/init.d/mysql: line 239: my_print_defaults: command not found
Starting MySQL ERROR! Couldn't find MySQL server (/usr/local/mysql/bin/mysqld_safe)
/etc/init.d/mysql: line 239: my_print_defaults: command not found
ERROR! MySQL server PID file could not be found!
Clean database src directory...

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


gcc -dumpversion 运行看一下
感觉有可能是gcc版本低造成的,可以尝试修改 include/version.sh 中 mysql-8.0.15 改成 mysql-8.0.13 试试看
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2019-4-27 02:10:28 | 显示全部楼层

gcc 4.8.5

改成8.0.13 成功安装了
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-20 07:13 , Processed in 0.027587 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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