VPS侦探论坛

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

Debian 9 x86_64 LNMP安装MariaDB失败.

[复制链接]
发表于 2017-9-3 16:06:57 | 显示全部楼层 |阅读模式

ESXi 6.5 虚拟 Debian 9.1 x86_64 官网下载Stable网络安装版

MariaDB 编译出错了, /usr/local/mariadb/var/ 目录没有错误日志, MariaDB没有运行.

PHP与Nginx已运行

位于 8435行-8487行, 日志已上传附件
  1. [  4%] Building CXX object mysys_ssl/CMakeFiles/mysys_ssl.dir/my_md5.cc.o
  2. /root/lnmp1.4/src/mariadb-10.1.23/mysys_ssl/my_md5.cc: In function ‘void md5_result(MD5_CONTEXT*, uchar*)’:
  3. /root/lnmp1.4/src/mariadb-10.1.23/mysys_ssl/my_md5.cc:86:29: error: ‘EVP_MD_CTX_cleanup’ was not declared in this scope
  4.    EVP_MD_CTX_cleanup(context);
  5.                              ^
  6. /root/lnmp1.4/src/mariadb-10.1.23/mysys_ssl/my_md5.cc: In function ‘void my_md5(uchar*, const char*, size_t)’:
  7. /root/lnmp1.4/src/mariadb-10.1.23/mysys_ssl/my_md5.cc:102:15: error: aggregate ‘MD5_CONTEXT md5_context’ has incomplete type and cannot be defined
  8.    MD5_CONTEXT md5_context;
  9.                ^~~~~~~~~~~
  10. /root/lnmp1.4/src/mariadb-10.1.23/mysys_ssl/my_md5.cc: In function ‘void my_md5_multi(uchar*, ...)’:
  11. /root/lnmp1.4/src/mariadb-10.1.23/mysys_ssl/my_md5.cc:127:15: error: aggregate ‘MD5_CONTEXT md5_context’ has incomplete type and cannot be defined
  12.    MD5_CONTEXT md5_context;
  13.                ^~~~~~~~~~~
  14. /root/lnmp1.4/src/mariadb-10.1.23/mysys_ssl/my_md5.cc: In function ‘size_t my_md5_context_size()’:
  15. /root/lnmp1.4/src/mariadb-10.1.23/mysys_ssl/my_md5.cc:140:28: error: invalid application of ‘sizeof’ to incomplete type ‘MD5_CONTEXT {aka evp_md_ctx_st}’
  16.    return sizeof(MD5_CONTEXT);
  17.                             ^
  18. mysys_ssl/CMakeFiles/mysys_ssl.dir/build.make:182: recipe for target 'mysys_ssl/CMakeFiles/mysys_ssl.dir/my_md5.cc.o' failed
  19. make[2]: *** [mysys_ssl/CMakeFiles/mysys_ssl.dir/my_md5.cc.o] Error 1
  20. CMakeFiles/Makefile2:8597: recipe for target 'mysys_ssl/CMakeFiles/mysys_ssl.dir/all' failed
  21. make[1]: *** [mysys_ssl/CMakeFiles/mysys_ssl.dir/all] Error 2
  22. Makefile:160: recipe for target 'all' failed
  23. make: *** [all] Error 2
  24. sed: -e expression #1, char 89: unterminated `s' command
  25. include/mariadb.sh: line 353: /usr/local/mariadb/scripts/mysql_install_db: No such file or directory
  26. Add mariadb service at system startup...
  27. Starting mariadb (via systemctl): mariadb.service.
  28. include/mariadb.sh: line 24: /usr/local/mariadb/bin/mysqladmin: No such file or directory
  29. failed, try other way...
  30. include/mariadb.sh: line 32: /usr/local/mariadb/bin/mysql: No such file or directory
  31. Set password failed!
  32. include/mariadb.sh: line 34: /usr/local/mariadb/bin/mysql: No such file or directory
  33. FLUSH PRIVILEGES failed!
  34. Restarting mariadb (via systemctl): mariadb.service.
  35. include/main.sh: line 599: /usr/local/mariadb/bin/mysql: No such file or directory
  36. Update root password...
  37. include/main.sh: line 599: /usr/local/mariadb/bin/mysql: No such file or directory
  38. ... Failed!
  39. Remove anonymous users...
  40. include/main.sh: line 599: /usr/local/mariadb/bin/mysql: No such file or directory
  41. include/main.sh: line 599: /usr/local/mariadb/bin/mysql: No such file or directory
  42. ... Failed!
  43. Disallow root login remotely...
  44. include/main.sh: line 599: /usr/local/mariadb/bin/mysql: No such file or directory
  45. ... Failed!
  46. Remove test database...
  47. include/main.sh: line 599: /usr/local/mariadb/bin/mysql: No such file or directory
  48. ... Failed!
  49. Reload privilege tables...
  50. include/main.sh: line 599: /usr/local/mariadb/bin/mysql: No such file or directory
  51. ... Failed!
  52. Restarting mariadb (via systemctl): mariadb.service.
  53. Stopping mariadb (via systemctl): mariadb.service.
复制代码

本帖子中包含更多资源

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

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


mariadb 10.1以下版本不支持openssl 1.1,debian 9就是这么6的上了openssl 1.1
可以安装mysql
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-9-3 19:55:18 | 显示全部楼层

回复 2# 的帖子


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

本版积分规则

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

GMT+8, 2024-11-18 05:53 , Processed in 0.026464 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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