mysql编译报错
Posted 借风拥你
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql编译报错相关的知识,希望对你有一定的参考价值。
1.make报错现象
Warning: Bison executable not found in PATH
解决办法
yum -y install bison
2.make报错现象
ake Error at /usr/share/cmake-2.8/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)
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: Internal CMake error, TryCompile configure of cmake failed
原因:gcc-c++没有安装
yum -y install gcc-c++
3.启动报错
或
mysql manager or server PID file could not be found!
解决办法:
解决办法:
# vi /etc/my.cnf (指明basedir和datadir路径即可)
basedir=/usr/local/mysql 安装路径 就是--prefix的路径
MySQL manager or server PID file could not be found! [FAILED]
Starting MySQL.Manager of pid-file quit without updating fi[FAILED]
解决办法:
在初始化一次数据库就好了
以上是关于mysql编译报错的主要内容,如果未能解决你的问题,请参考以下文章