debugsqlMinor
"Could NOT find Curses" error when installing MySQL from source
Viewed 0 times
errorsourcecouldcursesmysqlinstallingfindfromnotwhen
Problem
I am installing
http://dev.mysql.com/downloads/mysql/#downloads.
I have downloaded the file
I am using Debian/Ubuntu Machine. I am following the instructions as given in MySQL Documentation.
After issuing
Why am I getting this error?
MySQL Server from the source distribution which I downloaded from:http://dev.mysql.com/downloads/mysql/#downloads.
I have downloaded the file
(mysql-5.5.19.tar.gz).I am using Debian/Ubuntu Machine. I am following the instructions as given in MySQL Documentation.
After issuing
cmake . at the shell I am getting the following error:-- 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,
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)
-- Configuring incomplete, errors occurred!Why am I getting this error?
Solution
The clue is in the error message (which I also encountered today):
- install the correct Curses library. If you're on Debian/Ubuntu then install
libncurses5-dev( usesudo apt-get install libncurses5-dev)
- then remove CMakeCache.txt and rerun cmake. i.e. just do
rm -f CMakeCache.txt.
- Re-run
cmake .
Context
StackExchange Database Administrators Q#9654, answer score: 5
Revisions (0)
No revisions yet.