源码编译mysql报错解决

 [root@localhostmysql-5.5.11]# cmake

出现以下错误提示:

-- Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)
CMake Error at cmake/readlineNaNake:82(MESSAGE):
  Curses library not found.  Pleaseinstall appropriate package,

      remove CMakeCache.txt andrerun cmake.On Debian/Ubuntu, package name is libncurses5-dev, on Redhat andderivates it is ncurses-devel.
Call Stack (most recent call first):
  cmake/readlineNaNake:126 (FIND_CURSES)
  cmake/readlineNaNake:216(MYSQL_USE_BUNDLED_LIBEDIT)
  CMakeLists.txt:250 (MYSQL_CHECK_READLINE)

 

-- Configuring incomplete, errors occurred!

解决方法:

[root@localhost mysql-5.5.11]# rmCMakeCache.txt

[root@localhost mysql-5.5.11]# yum installncurses-devel

Warning: Bison executable not found in PATH
-- Configuring done
-- Generating done
-- Build files have been written to:/software/mysql-5.5.11



本文转自 维度2018 51CTO博客,原文链接:http://blog.51cto.com/xinsz08/1795729,如需转载请自行联系原作者

上一篇:IDEA 插件开发入门教程


下一篇:SQL Server 阻止了对组件 'Ad Hoc Distributed Queries' 的 STATEMENT'OpenRowset/OpenDatasource' 的访问,因为此组件已作为此服务器安全配置的一部分而被关闭。