VPS侦探论坛

 找回密码
 注册
查看: 12493|回复: 17

LNMP安装错误 (MySQL安装错误)

[复制链接]
发表于 2013-6-14 08:00:00 | 显示全部楼层 |阅读模式

1、安装环境:CubieBoardA10处理器,1G内存,4GNAND,安装到了16G Sandisk TF卡上),使用BerryBoot 安装过Ubuntu Server144MB大小)
版,和 Debian for Raspberry400MB大小)。然后安装LNMP,均失败,原因都是MySQL安装失败。Ubuntu Server 版本自带Apache2 SQLserverDebian没有说明。但是2个均安装失败。
2
、分别尝试用论坛方法fix,依次输入各类密码,然后重启。依然失败。
使用了这个:
wget http://soft.vpser.net/lnmp/ext/fix_pureftpd_mysql55.sh &&chmod +x fix_pureftpd_mysql55.sh && ./fix_pureftpd_mysql55.sh
依然无效,还是MySql有问题。
重启后显示如下:

/home/pi/lnmp1.0-full$ sudo /root/lnmp restart
=========================================================================
Manager for LNMP V1.0  ,  Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to Manage status of lnmp
For more information please visit http://www.lnmp.org

Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
Stoping LNMP...
/etc/init.d/mysql: 1: /etc/init.d/mysql: my_print_defaults: not found
Failed loading/usr/local/zend/ZendGuardLoader.so:  /usr/local/zend/ZendGuardLoader.so:cannot open shared object file: No such file or directory
/etc/init.d/mysql: 1: /etc/init.d/mysql: my_print_defaults: not found
/etc/init.d/mysql: 276: cd: can't cd to /usr/local/mysql
Stopping nginx daemon: nginx.
Gracefully shutting down php-fpm  done
MySQL server PID file could not be found! ... failed!
Starting LNMP...
Starting nginx daemon: nginx.
Starting php-fpm  done
Starting MySQL
Couldn't find MySQL server (/usr/local/mysql/bin/mysqld_safe) ... failed!
/home/pi/lnmp1.0-full$ sudo /etc/init.d/mysql restart
/etc/init.d/mysql: 1: /etc/init.d/mysql: my_print_defaults: not found
/etc/init.d/mysql: 1: /etc/init.d/mysql: my_print_defaults: not found
/etc/init.d/mysql: 1: /etc/init.d/mysql: my_print_defaults: not found
/etc/init.d/mysql: 276: cd: can't cd to /usr/local/mysql
MySQL server PID file could not be found! ... failed!
Starting MySQL
Couldn't find MySQL server (/usr/local/mysql/bin/mysqld_safe) ... failed!



然后,就是,那个log文件,我从 putty可以找得到,并且可以看到。但是 winScp中却看不到,好诡异啊,里面的设置还是隐藏文件可见%……


[ 本帖最后由 halfice 于 2013-6-14 08:12 编辑 ]

本帖子中包含更多资源

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

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


E325: ATTENTION
Found a swap file by the name "~/.lnmp-install.log.swp"
          owned by: root   dated: Fri Jun 14 06:22:44 2013
         file name: ~root/lnmp-install.log
          modified: no
         user name: root   host name: raspberrypi
        process ID: 2370 (still running)
While opening file "/root/lnmp-install.log"
             dated: Fri Jun 14 01:06:14 2013

(1) Another program may be editing the same file.  If this is the case,
    be careful not to end up with two different instances of the same
    file when making changes.  Quit, or continue with caution.
(2) An edit session for this file crashed.
    If this is the case, use ":recover" or "vim -r /root/lnmp-install.log"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file "/root/.lnmp-install.log.swp"
    to avoid this message.

Swap file "~/.lnmp-install.log.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort:

[ 本帖最后由 halfice 于 2013-6-14 08:11 编辑 ]

本帖子中包含更多资源

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

x
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2013-6-14 08:08:39 | 显示全部楼层

按置顶贴要求提供安装日志和mysql 日志
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2013-6-14 09:03:26 | 显示全部楼层



只有一个日志结尾的内容,没任何用处,按置顶帖要求提供完整的日志
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2013-6-14 11:19:59 | 显示全部楼层

回复 4# 的帖子


军哥,但是有个问题,那个log文件下载不下来。

就是,那个log文件,我从 putty可以找得到,并且可以看到,可以修改。但是 winScp中却看不到,也就无法下载。好诡异啊,看了下WinScp里面的设置还是隐藏文件可见也勾着……

[ 本帖最后由 halfice 于 2013-6-14 11:22 编辑 ]

本帖子中包含更多资源

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

x

军哥运维代购:http://shop63846532.taobao.com/

发表于 2013-6-14 12:15:50 | 显示全部楼层

你find 都找到在/root 下了,你还在/ 下找,能找到才怪
 楼主| 发表于 2013-6-14 14:49:47 | 显示全部楼层

回复 6# 的帖子


原来如此,谢啦,军哥。

但是我打开root目录,然后显示这样?

登录用户我看默认都是用户名:pi,密码:raspberry。
然后如果要root权限就加上sudo。

但是WinScp,为什么会打不开呢?

本帖子中包含更多资源

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

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

必须root登录,没法sudo
如何获取root,自行google 更改raspberry pi root密码的教程
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2013-6-15 05:11:40 | 显示全部楼层


还是老样子,Ubuntu server 144MB版本,原版本自带apache2和sql。然后yonglnmp安装MYSQL 失败,但是PHPMYADMIN有登陆页面,登陆提示#2002 无法登录 MySQL 服务器。
在Cubie Board 上面装的。


lnmp.log文件,军哥啊,论坛附件传不上去,就放到迅雷快船了。

[url=http://kuai.xunlei.com/d/lfQtAALyiADfhbtR805]http://kuai.xunlei.com/d/lfQtAALyiADfhbtR805[/url]


打开就是文件

[ 本帖最后由 halfice 于 2013-6-15 05:20 编辑 ]

本帖子中包含更多资源

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

x

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2013-6-15 05:22:25 | 显示全部楼层



忘了说了,这个处理器是全志A10的,内存是1G的。
发表于 2013-6-15 09:47:21 | 显示全部楼层

[ 68%] Building C object libmysql/CMakeFiles/clientlib.dir/__/sql-common/client_plugin.c.o
/root/lnmp1.0-full/mysql-5.5.28/sql-common/client_plugin.c: In function 'mysql_client_plugin_init':
/root/lnmp1.0-full/mysql-5.5.28/sql-common/client_plugin.c:252:5: error: incompatible type for argument 5 of 'add_plugin'
/root/lnmp1.0-full/mysql-5.5.28/sql-common/client_plugin.c:120:1: note: expected 'va_list' but argument is of type 'int'
/root/lnmp1.0-full/mysql-5.5.28/sql-common/client_plugin.c: In function 'mysql_client_register_plugin':
/root/lnmp1.0-full/mysql-5.5.28/sql-common/client_plugin.c:310:5: error: incompatible type for argument 5 of 'add_plugin'
/root/lnmp1.0-full/mysql-5.5.28/sql-common/client_plugin.c:120:1: note: expected 'va_list' but argument is of type 'int'
make[2]: *** [libmysql/CMakeFiles/clientlib.dir/__/sql-common/client_plugin.c.o] Error 1
make[1]: *** [libmysql/CMakeFiles/clientlib.dir/all] Error 2

http://sophie.zarb.org/distrib/M ... 9855d22f9d/files/27 arm的得按这个修改
 楼主| 发表于 2013-6-15 10:41:20 | 显示全部楼层

回复军哥


不是太明白,这个怎么改呢?

Fix build on arm

0 is not a valid va_list as va_list is an opaque type. Use a dummy va_list
instead.

It's fixing that:
/home/rtp/devel/work/mysql/BUILD/mysql-5.5.8/sql-common/client_plugin.c: In function 'mysql_client_plugin_init':
/home/rtp/devel/work/mysql/BUILD/mysql-5.5.8/sql-common/client_plugin.c:252: error: incompatible type for argument 5 of 'add_plugin'
/home/rtp/devel/work/mysql/BUILD/mysql-5.5.8/sql-common/client_plugin.c:126: note: expected 'va_list' but argument is of type 'int'
/home/rtp/devel/work/mysql/BUILD/mysql-5.5.8/sql-common/client_plugin.c: In function 'mysql_client_register_plugin':
/home/rtp/devel/work/mysql/BUILD/mysql-5.5.8/sql-common/client_plugin.c:310: error: incompatible type for argument 5 of 'add_plugin'
/home/rtp/devel/work/mysql/BUILD/mysql-5.5.8/sql-common/client_plugin.c:126: note: expected 'va_list' but argument is of type 'int'
make[2]: *** [libmysql/CMakeFiles/clientlib.dir/__/sql-common/client_plugin.c.o] Error 1
make[1]: *** [libmysql/CMakeFiles/clientlib.dir/all] Error 2
make: *** [all] Error 2

Now, gcc will emit a warning about non initialised stuff on arm but I found no way to
create properly an empty va_list.

Signed-off-by: Arnaud Patard
Index: mysql-5.5.8/sql-common/client_plugin.c
===================================================================
--- mysql-5.5.8.orig/sql-common/client_plugin.c
+++ mysql-5.5.8/sql-common/client_plugin.c
@@ -233,6 +233,7 @@ int mysql_client_plugin_init()
{
   MYSQL mysql;
   struct st_mysql_client_plugin **builtin;
+  va_list dummy;

   if (initialized)
     return 0;
@@ -249,7 +250,7 @@ int mysql_client_plugin_init()
   pthread_mutex_lock(&LOCK_load_client_plugin);

   for (builtin= mysql_client_builtins; *builtin; builtin++)
-    add_plugin(&mysql, *builtin, 0, 0, 0);
+    add_plugin(&mysql, *builtin, 0, 0, dummy);

   pthread_mutex_unlock(&LOCK_load_client_plugin);

@@ -293,6 +294,7 @@ struct st_mysql_client_plugin *
mysql_client_register_plugin(MYSQL *mysql,
                              struct st_mysql_client_plugin *plugin)
{
+  va_list dummy;
   if (is_not_initialized(mysql, plugin->name))
     return NULL;

@@ -307,7 +309,7 @@ mysql_client_register_plugin(MYSQL *mysq
     plugin= NULL;
   }
   else
-    plugin= add_plugin(mysql, plugin, 0, 0, 0);
+    plugin= add_plugin(mysql, plugin, 0, 0, dummy);

   pthread_mutex_unlock(&LOCK_load_client_plugin);
   return plugin;
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2013-6-15 13:43:25 | 显示全部楼层
军哥,那个修改的看不太懂呢……
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2013-6-15 14:11:14 | 显示全部楼层
可以看一下patch的基本语法,就知道怎么改这个文件了

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2013-6-16 01:03:15 | 显示全部楼层
还是不太明白呢?为什么要用Patch呢?

http://sophie.zarb.org/distrib/M ... 9855d22f9d/files/27

您给的这里面也没有Patch 呀?

Patch命令的用法是:patch [-R] {-p(n)} [--dry-run] < patch_file_name
但是还是不太明白呢?

军哥可否明示下,谢谢啊。  不好意思我太菜了……
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-16 07:54 , Processed in 0.033812 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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