当前位置:论坛首页 > Linux面板 > 求助

【待反馈】mysql安装失败

发表在 Linux面板2024-6-18 17:34 [复制链接] 15 837

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:linux 8.2   mysql5.6.44
系统版本:centos7.9
问题描述:mysql一直安装报错,mysql.sh脚本中664和704行
相关截图(日志、错误):


使用道具 举报 只看该作者 回复
发表于 2024-6-18 17:36:08 | 显示全部楼层
CentOS Linux release 7.9.2009 (Core)
Bit:64 Mem:1756M Core:2 gcc:8.3.1 cmake:2.8.12.2
Linux 3.10.0-1160.119.1.el7.x86_64 x86_64
使用道具 举报 回复 支持 反对
发表于 2024-6-18 17:36:42 | 显示全部楼层
mysql-5.7.44/boost/boost_1_59_0/boost/visit_each.hpp
mysql-5.7.44/boost/boost_1_59_0/boost/wave.hpp
mysql-5.7.44/boost/boost_1_59_0/boost/weak_ptr.hpp
mysql.sh: line 664: [: missing `]'
cat: /www/server/panel/install/mysql/config.pl: No such file or directory
mysql.sh: line 704: cd: src: No such file or directory
-- Running cmake version 2.8.12.2
-- Found Git: /bin/git (found version "1.8.3.1")
-- Configuring with MAX_INDEXES = 64U
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /bin/cc
-- Check for working C compiler: /bin/cc -- broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "/bin/cc" is not able to compile a simple test program.

It fails with the following output:

Change Dir: /www/server/mysql/src/install/CMakeFiles/CMakeTmp



Run Build Command:/bin/gmake "cmTryCompileExec3110129895/fast"

/bin/gmake -f CMakeFiles/cmTryCompileExec3110129895.dir/build.make
CMakeFiles/cmTryCompileExec3110129895.dir/build

gmake[1]: Entering directory
'/www/server/mysql/src/install/CMakeFiles/CMakeTmp'

/usr/bin/cmake -E cmake_progress_report
/www/server/mysql/src/install/CMakeFiles/CMakeTmp/CMakeFiles 1

Building C object
CMakeFiles/cmTryCompileExec3110129895.dir/testCCompiler.c.o

/bin/cc -o CMakeFiles/cmTryCompileExec3110129895.dir/testCCompiler.c.o -c
/www/server/mysql/src/install/CMakeFiles/CMakeTmp/testCCompiler.c

cc: error trying to exec 'cc1': execvp: No such file or directory

gmake[1]: *** [CMakeFiles/cmTryCompileExec3110129895.dir/build.make:62:
CMakeFiles/cmTryCompileExec3110129895.dir/testCCompiler.c.o] Error 1

gmake[1]: Leaving directory
'/www/server/mysql/src/install/CMakeFiles/CMakeTmp'

gmake: *** [Makefile:117: cmTryCompileExec3110129895/fast] Error 2





CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:146 (PROJECT)


-- Configuring incomplete, errors occurred!
See also "/www/server/mysql/src/install/CMakeFiles/CMakeOutput.log".
See also "/www/server/mysql/src/install/CMakeFiles/CMakeError.log".
make: *** No targets specified and no makefile found. Stop.
========================================================
CentOS Linux release 7.9.2009 (Core)
Bit:64 Mem:1756M Core:2 gcc:8.3.1 cmake:2.8.12.2
Linux 3.10.0-1160.119.1.el7.x86_64 x86_64
使用道具 举报 回复 支持 反对
发表于 2024-6-18 17:46:22 | 显示全部楼层
宝塔用户_himjcl 发表于 2024-6-18 17:36
mysql-5.7.44/boost/boost_1_59_0/boost/visit_each.hpp
mysql-5.7.44/boost/boost_1_59_0/boost/wave.hpp
...

您好,在您ssh终端执行以下命令后在重新安装一下
  1. sudo yum install gcc
复制代码
使用道具 举报 回复 支持 反对
发表于 2024-6-18 17:50:03 | 显示全部楼层
运维技术阿闯 发表于 2024-6-18 17:46
您好,在您ssh终端执行以下命令后在重新安装一下

软件包 gcc-4.8.5-44.el7.x86_64 已安装并且是最新版本
使用道具 举报 回复 支持 反对
发表于 2024-6-18 17:52:05 | 显示全部楼层
宝塔用户_himjcl 发表于 2024-6-18 17:50
软件包 gcc-4.8.5-44.el7.x86_64 已安装并且是最新版本

您好,您到服务器SSH终端中执行下面命令(非面板终端)修复面板
删除之前无法使用的面板环境
mv  /www/server/panel/pyenv /www/backup/pyenv_backup
重新获取新的面板环境和更新包
curl http://download.bt.cn/install/update_panel.sh|bash
使用道具 举报 回复 支持 反对
发表于 2024-6-18 17:59:19 | 显示全部楼层
运维技术阿闯 发表于 2024-6-18 17:52
您好,您到服务器SSH终端中执行下面命令(非面板终端)修复面板
删除之前无法使用的面板环境
mv  /www/s ...

还是不行

你看下这块有没有问题
mysql-5.7.44/boost/boost_1_59_0/boost/weak_ptr.hpp
mysql.sh: line 664: [: missing `]'
cat: /www/server/panel/install/mysql/config.pl: No such file or directory
mysql.sh: line 704: cd: src: No such file or directory
-- Running cmake version 2.8.12.2
-- Found Git: /bin/git (found version "1.8.3.1")
-- Configuring with MAX_INDEXES = 64U
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is unknown
-- Check for working C compiler: /bin/cc
-- Check for working C compiler: /bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /bin/c++
-- Check for working CXX compiler: /bin/c++ -- broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:54 (message):
The C++ compiler "/bin/c++" is not able to compile a simple test program.

It fails with the following output:

Change Dir: /www/server/mysql/src/install/CMakeFiles/CMakeTmp
使用道具 举报 回复 支持 反对
发表于 2024-6-18 18:17:42 | 显示全部楼层
您好,mysql脚本中并没有missing和704行,您打开这个文件截图到664行截图我看一下/www/server/panel/install/mysql.sh
使用道具 举报 回复 支持 反对
发表于 2024-6-18 18:26:53 | 显示全部楼层
664这里(第一组[])少了空格吧,704不清楚为啥提示src目录不存在,我看服务器上面是有的


if [ "${version}" == "mariadb_10.4"] || [ "${version}" == "mariadb_10.5" ] || [ "${version}" == "mariadb_10.6" ] ||  [ "${version}" == "mariadb_10.11" ] || [ "${version}" == "mariadb_11.3" ];then




图片上传提示过大
使用道具 举报 回复 支持 反对
发表于 2024-6-18 18:32:04 | 显示全部楼层
宝塔用户_himjcl 发表于 2024-6-18 18:26
664这里(第一组[])少了空格吧,704不清楚为啥提示src目录不存在,我看服务器上面是有的

您好,看一下文件权限
使用道具 举报 回复 支持 反对
发表于 2024-6-18 18:33:02 | 显示全部楼层
运维技术阿闯 发表于 2024-6-18 18:32
您好,看一下文件权限

644,要手动加+x权限吗
使用道具 举报 回复 支持 反对
发表于 2024-6-19 09:16:25 | 显示全部楼层
宝塔用户_himjcl 发表于 2024-6-18 18:33
644,要手动加+x权限吗

改成755权限后再尝试一下
使用道具 举报 回复 支持 反对
发表于 2024-6-19 09:29:00 | 显示全部楼层
运维技术阿闯 发表于 2024-6-19 09:16
改成755权限后再尝试一下

没有用,每次安装这个脚本都是会从新下载的
使用道具 举报 回复 支持 反对
发表于 2024-6-19 11:26:49 | 显示全部楼层
宝塔用户_himjcl 发表于 2024-6-19 09:29
没有用,每次安装这个脚本都是会从新下载的

您好,后台私信我一下您的面板登录信息,这边看一下
使用道具 举报 回复 支持 反对
发表于 2024-12-21 21:14:38 | 显示全部楼层
我也是同样的问题

mysql.sh: line 767: [: missing `]'cat: /www/server/panel/install/mysql/config.pl: No such file or directorymysql.sh: line 807: cd: too many argumentsCMake Deprecation Warning at CMakeLists.txt:35 (CMAKE_POLICY):The OLD behavior for policy CMP0018 will be removed from a future versionof CMake.The cmake-policies(7) manual explains that the OLD behaviors of allpolicies are deprecated and that a policy should be set to OLD only underspecific short-term circumstances. Projects should be ported to the NEWbehavior and not rely on setting a policy to OLD.CMake Deprecation Warning at CMakeLists.txt:41 (CMAKE_POLICY):The OLD behavior for policy CMP0022 will be removed from a future versionof CMake.The cmake-policies(7) manual explains that the OLD behaviors of allpolicies are deprecated and that a policy should be set to OLD only underspecific short-term circumstances. Projects should be ported to the NEWbehavior and not rely on setting a policy to OLD.CMake Deprecation Warning at CMakeLists.txt:48 (CMAKE_POLICY):The OLD behavior for policy CMP0045 will be removed from a future versionof CMake.The cmake-policies(7) manual explains that the OLD behaviors of allpolicies are deprecated and that a policy should be set to OLD only underspecific short-term circumstances. Projects should be ported to the NEWbehavior and not rely on setting a policy to OLD.CMake Deprecation Warning at CMakeLists.txt:49 (CMAKE_POLICY):The OLD behavior for policy CMP0042 will be removed from a future versionof CMake.The cmake-policies(7) manual explains that the OLD behaviors of allpolicies are deprecated and that a policy should be set to OLD only underspecific short-term circumstances. Projects should be ported to the NEWbehavior and not rely on setting a policy to OLD.-- Running cmake version 3.13.4



楼主解决了吗
使用道具 举报 回复 支持 反对
12下一页
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

立即付费处理

工作时间:09:00至24:00

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