





-- MySQL 5.5.19
-- 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,

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)

-- Configuring incomplete, errors occurred!

Why am I getting this error?



  3. Re-run cmake .
| improve this answer | |
  • Important point for me rm -f CMakeCache.txt :) thanks – Mostafa Shahverdy May 30 '14 at 13:50







| improve this answer | |

This may happen due to two reasons.
1. you don't have the curses library installed. This can solved with using below command.

sudo apt-get install libncurses5-dev

2. You haven't configure cmake correctly to find the curses library.

if you have installed the library correctly using above command, use below to locate it.

locate libncurses.so

mine is /usr/lib/x86_64-linux-gnu/libncurses.so (Normally the last path.)
Now you have to locate curses.h. Use below command.

locate curses.h

This will give you several path but the all in the /usr/include So that is what we need. Now we have to configure the curses location. Find your cmake folder in there is /Modules/FindCurses.cmake open it. (Full path for cmake in mine is /usr/share/cmake-3.2/Modules/FindCurses.cmake If you can't find manually where cmake installed search for cmake on your Ubuntu partition.)

Add these top of file after comments. (with your respective locations.)

set( CMAKE_INCLUDE_PATH "/usr/include")
set( CMAKE_LIBRARY_PATH "/usr/lib/x86_64-linux-gnu/libncurses.so")

This would do your job.

| improve this answer | |
  • 1
    locate won't find a thing if you haven't run updatedb recently – Philᵀᴹ Feb 26 '16 at 11:46
  • Mine work fine. I frequently updates it. BTW Thanks Phil :) – Menuka Ishan Feb 26 '16 at 11:48

Your Answer

