1、-- Could NOT find Curses (missing:  CURSES_LIBRARY CURSES_INCLUDE_PATH) 

CMake Error at cmake/readline.cmake:83 (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.

Call Stack (most recent call first):

  cmake/readline.cmake:127 (FIND_CURSES)

  cmake/readline.cmake:217 (MYSQL_USE_BUNDLED_LIBEDIT)

  CMakeLists.txt:257 (MYSQL_CHECK_READLINE)
解决:
安装  ncurses-devel-5.5-24.20060715.x86_64.rpm后,删除mysql解压目录下的CMakeCache.txt,重新使用cmake配置

[root@host mysql-5.5.11]# make
       [root@host mysql-5.5.11]# make install

2、Linking CXX executable ../bin/ccmake

/usr/bin/ld: skipping incompatible /usr/lib/libcurses.so when searching for -lcurses

/usr/bin/ld: skipping incompatible /usr/lib/libcurses.a when searching for -lcurses

/usr/bin/ld: cannot find -lcurses

collect2: ld returned 1 exit status

make[2]: *** [bin/ccmake] Error 1

make[1]: *** [Source/CMakeFiles/ccmake.dir/all] Error 2

make: *** [all] Error 2

解决:查看了一下,安装的ncurses-devel为386的包,卸载安装X64的包

3、make[2]: *** No rule to make target `/usr/lib/libcurses.so', needed by `bin/ccmake'.  Stop.

make[1]: *** [Source/CMakeFiles/ccmake.dir/all] Error 2

make: *** [all] Error 2

解决:cp /usr/lib64/libcurses* /usr/lib

4、configure: error: Cannot find MySQL header files under ...
解决:rpm -ivh MySQL-devel-community-5.1.32-0.rhel5.i386.rpm