步骤:
0.安装g++: yum install gcc-c++*
1.安装yum install ncurses-devel, 否则在./configure时可能会遇到 No curses/termcap library found错误
2. ./configure –with-debug
–enable-mysql-maintainer-mode=no #如果没有后面这个参数,会导致warnings being treated as errors,一些警告就会导致安装失败
3. make
4. sudo make install
参考:
http://book.51cto.com/art/201001/180782.htm
http://hi.baidu.com/zys1234/blog/item/a9ae56019256541f1d9583d4.html
http://bugs.mysql.com/bug.php?id=57989
http://www.blogjava.net/chenlb/archive/2007/03/20/105114.html的最后一个评论,解决redeclaration of C++ built-in type ‘bool’