当前位置: 移动技术网 > IT编程>数据库>Mysql > mysql-5.5.28源码安装过程中错误总结

mysql-5.5.28源码安装过程中错误总结

2017年12月12日  | 移动技术网IT编程  | 我要评论

介绍一下关于mysql-5.5.28源码安装过程中几大错误总结,希望此文章对各位同学有所帮助。
系统centos 6.3 mini (没有任何编译环境)
预编译环境首先装了众所周知的 cmake(yum install cmake -y)

复制代码 代码如下:

、./bootstrap error when bootstrapping cmake: cannot find appropriate c compiler on this system. please specify one using environment variable cc. see cmake_bootstrap.log for compilers attempted.

好吧还是没准备充分,发现c编译程序没装,也就是gcc了,那就装上(yum install gcc -y)
复制代码 代码如下:

cmake error: your cxx compiler: "cmake_cxx_compiler-notfound" was not found.


额,这个算是个人新遇见的错误了,到处查找资料,总算明白了,原来了还有一个c++的编译程序没装,好吧(yum install gcc-c++ -y),然后发现已经生成cmakecache.txt文件了。没办法,删了(rm -rf cmakecache.txt)继续编译!
复制代码 代码如下:

cmake error at cmake/readline.cmake:82 (message):
curses library not found.  please install appropriate package,
remove cmakecache.txt and rerun cmake.on debian/ubuntu, package name is libncurses5-dev, on redhat and derivates it is ncurses-devel.


果断的又懵了,不知道哪里出了问题,猜是什么包没有装吧,最后才看懂on debian/ubuntu, package name is libncurses5-dev, on redhat and derivates it is ncurses-devel.这两句,ok装了ncurses-devel这个包(yum install ncurses-devel -y)
warning: bison executable not found in path
总算顺利的配置成功了,提示一个警告,不能放过,一查是缺少bison,简单了(yum install bison -y)安装解决!接着就make;make install啦!很幸运,顺利完成!

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网