VPS侦探论坛

标题: lnmp1.8在centos 8.3 下mysql安装失败 [打印本页]

作者: pppscn    时间: 2021-6-1 16:29
标题: lnmp1.8在centos 8.3 下mysql安装失败
  1. [+] Installing mysql-8.0.25...
  2. Uncompress mysql-8.0.25.tar.gz...
  3. cd mysql-8.0.25...
  4. [+] Download or use exist boost...
  5. -- Running cmake version 3.11.4
  6. -- Found Git: /usr/bin/git (found version "2.27.0")
  7. -- This is .el8. as found from 'rpm -qf /'
  8. -- Looking for a devtoolset compiler
  9. CMake Warning at CMakeLists.txt:280 (MESSAGE):
  10.   Could not find devtoolset compiler in /opt/rh/gcc-toolset-10


  11. CMake Error at CMakeLists.txt:281 (MESSAGE):
  12.   Please set CMAKE_C_COMPILER and CMAKE_CXX_COMPILER explicitly.


  13. -- Configuring incomplete, errors occurred!
  14. make: *** No targets specified and no makefile found.  Stop.
  15. make: *** No targets specified and no makefile found.  Stop.
  16. make: *** No rule to make target 'install'.  Stop.
  17. groupadd: group 'mysql' already exists
  18. useradd: user 'mysql' already exists
复制代码


应该是这个原因:
https://forums.centos.org/viewtopic.php?t=76735


作者: licess    时间: 2021-6-1 19:19
https://lnmp.org/install.html 安装要求上有说明:
MySQL 8.0.23以下版本升级或安装必须CentOS 8+,Debian 9+,Ubuntu 16.04+且必须使用1.7!!!
MySQL 8.0.24以上版本升级或安装必须Debian 11+,Ubuntu 20.04+,Fedora 33+且必须使用1.8!!!

lnmp 1.8就是带的MySQL 8.0.25,所以要符合上面要求
centos 8和centos stream 8是不一样的,虽然说是lnmp 1.8对centos stream 8是支持mysql 8.0.24+安装的,但是很多人centos 8 和 8 stream分不开,所以文档就直接没写centos 8 stream
作者: pppscn    时间: 2021-6-1 22:34
ecs上的公用镜像,确实没认真看是否stream

手动安装 dnf install gcc-toolset-10 也不行

已经换成ubuntu了
作者: licess    时间: 2021-6-2 19:18
pppscn 发表于 2021-6-1 22:34
ecs上的公用镜像,确实没认真看是否stream

手动安装 dnf install gcc-toolset-10 也不行

即使装了centos stream 8 的centos-release-stream也一样各种报错




欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/) Powered by Discuz! X3.4