2009年2月13日金曜日

[Mysql]some errors occures while compiling the mysql source code manually

Following errors occures while compiling the mysql database source code manually.

termcap error
  • Error Message
    checking for termcap functions library... configure: error: No curses/termcap library found
  • Solution
    Need to install ncurses-devel before compilation
    execute "yum -y install ncurses-devel"(if you want to install by using yum) and install ncurses-devel package
../depcomp: line 571: exec: g++: not found
  • Error Message
    ../depcomp: line 571: exec: g++: not found
  • Solution
    Need to install gcc-c++ compiler before manual compilation of the mysql
    execute "yum -y install gcc-c++" to install gcc-c++
../include/my_global.h:1078: error: redeclaration of C++ built-in type 'bool'
  • Error Message
    ../include/my_global.h:1078: error: redeclaration of C++ built-in type 'bool'
    make[1]: *** [my_new.o] Error 1
  • Solution
    Need to re-configure after installing the gcc-c++ compiler.
    After installing the gcc-c++ compiler, please execute "./configure" command with the correct options.
unrecognized options error
  • Error Message
    configure: WARNING: unrecognized options: --with-innodb --with-partition .....
  • Solution
    This "--with-innodb" or other options starts with "--with-" are somtimes invalid. We have to use the "--with-plugins=innobase" instead of using "--with-innodb" option when configuring the mysql compile options.
  • References
    http://www.mysqlperformanceblog.com/?s=mysql+config+with+plugin+innobase
    http://www.linuxfromscratch.org/blfs/view/svn/server/mysql.html
    http://d.hatena.ne.jp/tomoyamkung/20081225/1230165292(Japanese)

0 件のコメント: