2012年7月17日
摘要: 错误如下:make[sudo] password for XXX: cd ./src && makemake[1]: 正在进入目录 `/home/XXX/ndoutils-1.5.2/src'gcc -fPIC -g -O2 -I/usr/local/mysql/include/mysql -DHAVE_CONFIG_H -c -o io.o io.cIn file included from io.c:11:0:../include/config.h:261:25: 致命错误: mysql/mysql.h:没有那个文件或目录编译中断。make[1]: *** [io. 阅读全文
posted @ 2012-07-17 20:26 百万军中 阅读(5070) 评论(0) 推荐(0) 编辑
摘要: 最初apt-get install mysql-server安装了一次,版本为5.1,感觉不满意,于是apt-get remove卸载,下载源码编译安装之。谁知道出现了各种各样的错误,什么language啊、*.sock啊、errmsg啊等等,反正很多啊,比较烦google之,发现是两次装的版本不一致导致的。于是find /var /etc | grep "mysql"查找到N多结果,然后把mysql相关的逐个删除(需要甄别)。然后重新安装mysql。1.CMAKE参数参考如下:cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql \# 阅读全文
posted @ 2012-07-17 19:29 百万军中 阅读(1192) 评论(0) 推荐(0) 编辑
摘要: 问题描述如下:$:sudo ./scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysqlInstalling MySQL system tables...Installation of system tables failed! Examine the logs in/var/lib/mysql for more information.You can try to start the mysqld daemon with: shell> /usr/local/mysql/bin/mysqld --skip-gra. 阅读全文
posted @ 2012-07-17 15:11 百万军中 阅读(3406) 评论(0) 推荐(0) 编辑