LNMP安装错误 (MySQL安装错误)
1、安装环境:CubieBoard(A10处理器,1G内存,4GNAND,安装到了16G Sandisk 的TF卡上),使用BerryBoot 安装过Ubuntu Server(144MB大小)版,和 Debian for Raspberry(400多MB大小)。然后安装LNMP,均失败,原因都是MySQL安装失败。Ubuntu Server 版本自带Apache2 和 SQLserver,Debian没有说明。但是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-fpmdone
MySQL server PID file could not be found! ... failed!
Starting LNMP...
Starting nginx daemon: nginx.
Starting php-fpmdone
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 编辑 ] 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!
pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort:
[ 本帖最后由 halfice 于 2013-6-14 08:11 编辑 ] 按置顶贴要求提供安装日志和mysql 日志 只有一个日志结尾的内容,没任何用处,按置顶帖要求提供完整的日志
回复 4# 的帖子
军哥,但是有个问题,那个log文件下载不下来。就是,那个log文件,我从 putty可以找得到,并且可以看到,可以修改。但是 winScp中却看不到,也就无法下载。好诡异啊,看了下WinScp里面的设置还是隐藏文件可见也勾着……
[ 本帖最后由 halfice 于 2013-6-14 11:22 编辑 ] 你find 都找到在/root 下了,你还在/ 下找,能找到才怪:Q
回复 6# 的帖子
原来如此,谢啦,军哥。但是我打开root目录,然后显示这样?
登录用户我看默认都是用户名:pi,密码:raspberry。
然后如果要root权限就加上sudo。
但是WinScp,为什么会打不开呢? 必须root登录,没法sudo
如何获取root,自行google 更改raspberry pi root密码的教程 还是老样子,Ubuntu server 144MB版本,原版本自带apache2和sql。然后yonglnmp安装MYSQL 失败,但是PHPMYADMIN有登陆页面,登陆提示#2002 无法登录 MySQL 服务器。
在Cubie Board 上面装的。
lnmp.log文件,军哥啊,论坛附件传不上去,就放到迅雷快船了。
http://kuai.xunlei.com/d/lfQtAALyiADfhbtR805
打开就是文件
[ 本帖最后由 halfice 于 2013-6-15 05:20 编辑 ] 忘了说了,这个处理器是全志A10的,内存是1G的。 [ 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: *** Error 1
make: *** Error 2
http://sophie.zarb.org/distrib/Mageia/1/i586/media/core-updates-src/by-pkgid/3d9c17c564d30ead0a0dab9855d22f9d/files/27 arm的得按这个修改
回复军哥
不是太明白,这个怎么改呢?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: *** Error 1
make: *** Error 2
make: *** 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; 军哥,那个修改的看不太懂呢…… 可以看一下patch的基本语法,就知道怎么改这个文件了 还是不太明白呢?为什么要用Patch呢?
http://sophie.zarb.org/distrib/Mageia/1/i586/media/core-updates-src/by-pkgid/3d9c17c564d30ead0a0dab9855d22f9d/files/27
您给的这里面也没有Patch 呀?
Patch命令的用法是:patch [-R] {-p(n)} [--dry-run] < patch_file_name
但是还是不太明白呢?
军哥可否明示下,谢谢啊。不好意思我太菜了……
页:
[1]
2