编译安装mysql5.6以上版本报错解决
2015-09-23 18:56
691 查看
查看官网安装说明:
http://dev.mysql.com/doc/refman/5.6/en/binary-installation.html
一、编译安装
shell> groupadd mysql
shell> useradd -r -g mysql mysql
shell> cd /usr/local
shell> tar zxvf /path/to/mysql-VERSION-OS.tar.gz
shell> ln -s full-path-to-mysql-VERSION-OS mysql
shell> cd mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
shell> bin/mysqld_safe --user=mysql Next command is optional
shell> cp support-files/mysql.server /etc/init.d/mysql.server
二、cmake过程报错说明及解决:
1、curses报错:
-- Could NOT find OpenSSL (missing: OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR)
-- Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)
CMake Error at cmake/readline.cmake:83 (MESSAGE):
Curses library not found. Please install appropriate package,
解决方法: yum install ncurses-devel
2、HAVE_PEERCRED报错:
-- Performing Test HAVE_PEERCRED
CMake Error at /usr/share/cmake/Modules/CMakeCXXInformation.cmake:17 (GET_FILENAME_COMPONENT):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
CMakeLists.txt:3 (PROJECT)
解决方法:yum install gcc gcc-c++ -y
3、bison报错:
-- Googlemock was not found. gtest-based unit tests will be disabled. You can run cmake . -DENABLE_DOWNLOADS=1 to automatically download and build required components from source.
-- If you are inside a firewall, you may need to use an http proxy: export http_proxy=http://example.com:80
Warning: Bison executable not found in PATH
-- Library mysqlserver depends on OSLIBS -lpthread;m;rt;crypt;dl
解决方法:yum install -y libaio bison
之后清理缓存文件,然后重新编译:
rm -f CMakeCache.txt
cmake .
本文出自 “秋天的童话” 博客,请务必保留此出处http://wushank.blog.51cto.com/3489095/1697589
http://dev.mysql.com/doc/refman/5.6/en/binary-installation.html
一、编译安装
shell> groupadd mysql
shell> useradd -r -g mysql mysql
shell> cd /usr/local
shell> tar zxvf /path/to/mysql-VERSION-OS.tar.gz
shell> ln -s full-path-to-mysql-VERSION-OS mysql
shell> cd mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
shell> bin/mysqld_safe --user=mysql Next command is optional
shell> cp support-files/mysql.server /etc/init.d/mysql.server
二、cmake过程报错说明及解决:
1、curses报错:
-- Could NOT find OpenSSL (missing: OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR)
-- Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)
CMake Error at cmake/readline.cmake:83 (MESSAGE):
Curses library not found. Please install appropriate package,
解决方法: yum install ncurses-devel
2、HAVE_PEERCRED报错:
-- Performing Test HAVE_PEERCRED
CMake Error at /usr/share/cmake/Modules/CMakeCXXInformation.cmake:17 (GET_FILENAME_COMPONENT):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
CMakeLists.txt:3 (PROJECT)
解决方法:yum install gcc gcc-c++ -y
3、bison报错:
-- Googlemock was not found. gtest-based unit tests will be disabled. You can run cmake . -DENABLE_DOWNLOADS=1 to automatically download and build required components from source.
-- If you are inside a firewall, you may need to use an http proxy: export http_proxy=http://example.com:80
Warning: Bison executable not found in PATH
-- Library mysqlserver depends on OSLIBS -lpthread;m;rt;crypt;dl
解决方法:yum install -y libaio bison
之后清理缓存文件,然后重新编译:
rm -f CMakeCache.txt
cmake .
本文出自 “秋天的童话” 博客,请务必保留此出处http://wushank.blog.51cto.com/3489095/1697589
相关文章推荐
- mysql将a表字段插入到b表
- mysqldump备份警告
- MySQL 表名大小写区分
- mysqldump选项
- mysql 导入导出
- mysql grant用户权限设置
- mysql 批量更新临时表中的数据
- mysql替换成对括号
- mysql replication(主从复制)(三)GTIDs
- 连接MySql速度慢的解决方法(skip-name-resolve)
- MySQL的几种备份工具
- Mysql 数据库无法删除 41 错误
- MySQL 日期时间函数
- 解决Mysql乱码问题
- mysql 批量删除表数据
- mysql数据库使用注意事项
- MySQL读写分离--mysql-proxy和amoeba
- MYSQL 创建用户
- mysql命令集锦
- mysql定时生成sql脚本