通过源码安装 MySQL 数据库,下载了 mysql-5.5.24 的版本,在使用 cmake 时产生了报错,如下:
1 CMake Error at cmake/readline.cmake:82 (MESSAGE): 2 Curses library not found. Please install appropriate package, 3 4 remove CMakeCache.txt and rerun cmake.On Debian/Ubuntu, package name is libncurses5-dev, on Redhat and derivates it is ncurses-devel. 5 Call Stack (most recent call first): 6 cmake/readline.cmake:126 (FIND_CURSES) 7 cmake/readline.cmake:216 (MYSQL_USE_BUNDLED_LIBEDIT) 8 CMakeLists.txt:250 (MYSQL_CHECK_READLINE) 9 10 -- Configuring incomplete, errors occurred!
解决方法:
1 [[email protected] mysql-5.5.24]# rm CMakeCache.txt 2 [[email protected] mysql-5.5.24]# yum install ncurses-devel 3 [[email protected] mysql-5.5.24]# yum install bison 4 [[email protected] mysql-5.5.24]# make 5 [[email protected] mysql-5.5.24]# make install
安装 ncurses 成功后,再次进行 cmake 就可以了。
原文地址:https://www.cnblogs.com/tosser/p/9906164.html
时间: 2024-10-08 20:52:40