lnmp1.8在centos 8.3 下mysql安装失败
[+] Installing mysql-8.0.25...Uncompress mysql-8.0.25.tar.gz...
cd mysql-8.0.25...
[+] Download or use exist boost...
-- Running cmake version 3.11.4
-- Found Git: /usr/bin/git (found version "2.27.0")
-- This is .el8. as found from 'rpm -qf /'
-- Looking for a devtoolset compiler
CMake Warning at CMakeLists.txt:280 (MESSAGE):
Could not find devtoolset compiler in /opt/rh/gcc-toolset-10
CMake Error at CMakeLists.txt:281 (MESSAGE):
Please set CMAKE_C_COMPILER and CMAKE_CXX_COMPILER explicitly.
-- Configuring incomplete, errors occurred!
make: *** No targets specified and no makefile found.Stop.
make: *** No targets specified and no makefile found.Stop.
make: *** No rule to make target 'install'.Stop.
groupadd: group 'mysql' already exists
useradd: user 'mysql' already exists
应该是这个原因:
https://forums.centos.org/viewtopic.php?t=76735
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 ecs上的公用镜像,确实没认真看是否stream
手动安装 dnf install gcc-toolset-10 也不行
已经换成ubuntu了 pppscn 发表于 2021-6-1 22:34
ecs上的公用镜像,确实没认真看是否stream
手动安装 dnf install gcc-toolset-10 也不行
即使装了centos stream 8 的centos-release-stream也一样各种报错
页:
[1]