VPS侦探论坛

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

lnmp1.1安装mysql失败

[复制链接]
发表于 2015-7-17 17:24:28 | 显示全部楼层 |阅读模式

请指教!
安装结束时显示以下内容:
.....
Error: /usr/local/mysql not found!!!MySQL install failed.
PHP: OK
PHP-FPM: OK
Sorry,Failed to install LNMP!
Please visit https://bbs.vpser.net/forum-25-1.html feedback errors and logs.
You can download /root/lnmp-install.log from your server,and upload lnmp-install.log to LNMP Forum.

我的系统:Linux localhost.localdomain 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
配置:内存32G,硬盘够大,主板和cpu也是比较好的配置(就个人电脑而言,不是专业服务器)

本帖子中包含更多资源

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

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


已加载插件:fastestmirror, langpacks
/var/run/yum.pid 已被锁定,PID 为 5209 的另一个程序正在运行。
Another app is currently holding the yum lock; waiting for it to exit...
  另一个应用程序是:PackageKit
    内存:167 M RSS (1.5 GB VSZ)
    已启动: Fri Jul 17 14:48:19 2015 - 1:33:38之前
    状态  :睡眠中,进程ID:5209
Another app is currently holding the yum lock; waiting for it to exit...

yum 被占用,需要保证yum没被使用中
patching file vio/viossl.c
CMake Error: The current CMakeCache.txt directory /home/work/package/lnmp1.1-full/mysql-5.5.37/CMakeCache.txt is different than the directory /home/sjdb/packages/lnmp1.1-full/mysql-5.5.37 where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
CMake Error: The source "/home/work/package/lnmp1.1-full/mysql-5.5.37/CMakeLists.txt" does not match the source "/home/sjdb/packages/lnmp1.1-full/mysql-5.5.37/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.
CMake Error: The source directory "/home/sjdb/packages/lnmp1.1-full/mysql-5.5.37" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
make: *** [cmake_check_build_system] 错误 1

按这个提示是应该在这个目录里多次安装过mysql造成的

重新安装需要先卸载或重装系统,并删除lnmp目录后重新下载安装,要不会有缓存等干扰无法获取到有用信息
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2015-7-20 08:34:33 | 显示全部楼层

非常感谢您的答复。
按这个提示是应该在这个目录里多次安装过mysql造成的

不过我这台是全新的机器,之前没有安装包的操作,不知道为什么会存在重复安装的错误。


上周五安装1.1失败后,我后来又重新下载和安装lnmp1.2就成功了。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-28 03:28 , Processed in 0.025956 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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