安装MySQL的时候遇到的错误

时间:2023-03-09 05:51:12
安装MySQL的时候遇到的错误

这里我安装的是MySQL5.6

我遇到的错误有

(1)Warning: Bison executable not found in PATH

解决办法:

yum install bison

原文摘自:http://www.tuicool.com/articles/a2y2If

(2)报错信息:

-- 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参数后重新编译安装

说明:新版mysql 5.6还支持了google的c++mock框架了,提示带了-DENABLE_DOWNLOADS=1可解决这个问题(就是允许下载)。

重新编译的时候需要执行

make clean

rm -f CMakeCache.txt