源码安装ncurses-devel
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了源码安装ncurses-devel相关的知识,希望对你有一定的参考价值。
安装mysql5.6执行cmake后出现以下错误信息
-- Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH) CMake Error at cmake/readline.cmake:85 (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:128 (FIND_CURSES) cmake/readline.cmake:202 (MYSQL_USE_BUNDLED_EDITLINE) CMakeLists.txt:421 (MYSQL_CHECK_EDITLINE) -- Configuring incomplete, errors occurred! See also "/liuzhen/mysql-5.6.35/CMakeFiles/CMakeOutput.log". See also "/liuzhen/mysql-5.6.35/CMakeFiles/CMakeError.log".
说明未安装ncurses-devel
如果使用yum安装输入下面命令
[[email protected] liuzhen]# yum install ncurses-devel
yum安装完成后,重新执行cmake,问题不再出现。
注意事项:
如mysql安装失败重新编译时,需要清除旧的对象文件和缓存信息。
[[email protected] mysql-5.6.35]# make clean [[email protected] mysql-5.6.35]# rm -f CMakeCache.txt [[email protected] mysql-5.6.35]# rm -rf /etc/my.cnf
如果想要通过源码安装方式解决同样问题请往下看
下载地址:http://ftp.gnu.org/gnu/ncurses/
我选择的是最新版本:http://ftp.gnu.org/gnu/ncurses/ncurses-6.0.tar.gz
[[email protected] liuzhen]# tar -zxvf ncurses-6.0.tar.gz [[email protected] liuzhen]# cd ncurses-6.0 [[email protected] liuzhen]# ./configure --with-shared --without-debug --without-ada --enable-overwrite [[email protected] liuzhen]# make [[email protected] liuzhen]# make install
本文出自 “刘振” 博客,请务必保留此出处http://liuzhenlife.blog.51cto.com/10591893/1892078
以上是关于源码安装ncurses-devel的主要内容,如果未能解决你的问题,请参考以下文章
Android 插件化VirtualApp 源码分析 ( 目前的 API 现状 | 安装应用源码分析 | 安装按钮执行的操作 | 返回到 HomeActivity 执行的操作 )(代码片段