Linux 安装 MySQL 出现 Could NOT find Curses (missing CURSES_LIBRARY CURSES_INCLUDE_PATH)
Posted tosser
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux 安装 MySQL 出现 Could NOT find Curses (missing CURSES_LIBRARY CURSES_INCLUDE_PATH)相关的知识,希望对你有一定的参考价值。
通过源码安装 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 就可以了。
以上是关于Linux 安装 MySQL 出现 Could NOT find Curses (missing CURSES_LIBRARY CURSES_INCLUDE_PATH)的主要内容,如果未能解决你的问题,请参考以下文章
linux安装命令出错(could not resolve host mirrorlist.centos.org)
mysql安装error:the security setting could not be applied
Linux重启mysql Error getting authority: Error initializing authority: Could not connect: Resource tem
"Could not resolve host: mirrorlist.centos.org; Unknown error"解决方法
linux 遇见错误Could not get lock /var/lib/dpkg/lock
Could not load driverClass jdbc:mysql://localhost:3306/spring