Bison executable not found in PATH by mysql install

  1. 云栖社区>
  2. 博客>
  3. 正文

Bison executable not found in PATH by mysql install

技术mix呢 2017-10-19 12:58:00 浏览510
展开阅读全文

[root@luozhonghua mysql-5.5.21]# cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql  -DMYSQL_DATADIR=/data/mysql  -DSYSCONFDIR=/etc

-- Check size of pthread_t
-- Check size of pthread_t - done
-- Performing Test HAVE_PEERCRED
-- Performing Test HAVE_PEERCRED - Success
Warning: Bison executable not found in PATH
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/src/mysql-5.5.21


解决的方法:

[root@luozhonghua mysql]# yum install bison

安装完后,再次运行:

[root@luozhonghua mysql-5.5.21]# cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql  -DMYSQL_DATADIR=/data/mysql  -DSYSCONFDIR=/etc
-- MySQL 5.5.21
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/src/mysql-5.5.21

成功通过!记住是mysql-5.5.21版本号,别的版本号会有差异。






本文转自mfrbuaa博客园博客,原文链接:http://www.cnblogs.com/mfrbuaa/p/5325596.html,如需转载请自行联系原作者   


网友评论

登录后评论
0/500
评论
技术mix呢
+ 关注