MySQL 源码编译安装报错 Googlemock was not found
来源:互联网 发布:战舰世界mac 国服 编辑:程序博客网 时间:2024/06/05 02:25
今天编译安装mysql 5.6.27的时候报错。
执行命令:
shell> cmake . \> -DCMAKE_INSTALL_PREFIX=/usr/local/mysql \> -DMYSQL_DATADIR=/usr/local/mysql/data \> -DDEFAULT_CHARSET=utf8 \> -DDEFAULT_COLLATION=utf8_general_ci \> -DEXTRA_CHARSETS=all \> -DENABLED_LOCAL_INFILE=1
报错信息:
-- 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.
解决方法:
带上-DENABLE_DOWNLOADS=1参数后重新编译安装
rm -f CMakeCache.txtshell> cmake . \> -DCMAKE_INSTALL_PREFIX=/usr/local/mysql \> -DMYSQL_DATADIR=/usr/local/mysql/data \> -DDEFAULT_CHARSET=utf8 \> -DDEFAULT_COLLATION=utf8_general_ci \> -DEXTRA_CHARSETS=all \> -DENABLED_LOCAL_INFILE=1 \> -DENABLE_DOWNLOADS=1
说明:新版mysql 5.6还支持了google的c++mock框架了,提示带了-DENABLE_DOWNLOADS=1可解决这个问题(就是允许下载)。
0 0
- MySQL 源码编译安装报错 Googlemock was not found
- 安装mysql-python时,报错 Python version 2.7 required, which was not found in the registry.
- 编译安装 mysql 5.5,运行 cmake报错Curses library not found
- mac 安装 MySQL报错 -bash: mysql: command not found
- 解决 安装 MYSQL exec: g++: not found 报错
- 树莓派安装mysql-srver报错 404 not found!
- mac安装MySQL-python报错:EnvironmentError: mysql_config not found
- pip安装mysql-python报mysql_config: not found错
- 安装win32com报错-Python Version 2.7 required which was not found in the registry 问题解决 .
- npm 安装 canvas报错:package cairo was not found in the pkg-config search path
- 安装cx_Oracle报错python version 3.4 required, which was not found in the registry
- MySQL 源码编译安装报错 Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)
- MySQL 源码编译安装报错 CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
- 源码编译出现的问题cmake 提示C compiler was not found和Cxx complier was not found解决办法
- zabbix源码安装时报错:MySQL library not found---zabbix
- POI操作ppt报错:Blank layout was not found
- openldap 编译报错MozNSS not found
- Coreseek 编译报错 “ExprEval” was not declared 解决方法
- ZendStudio调试配置(XDebug)
- C++中map的排序问题
- 欢迎使用CSDN-markdown编辑器
- [ahk]改变Excel的sheet标签颜色
- UI - UISwitchAndUIActivityIndicatorView
- MySQL 源码编译安装报错 Googlemock was not found
- 使用Cocos2d-lua开发植物大战僵尸09-实现添加植物
- Heap
- leetcode-Symmetric Tree
- lib与dll文件的区别与联系
- Range Sum Query - Immutable
- 深入浅出Android Support Annotation(什么是android.support.annotation.NonNull的拓展)【转】
- Hibernate 面试总结
- Android快速SDK(10)地址库Location【傻瓜模式】