remove CMakeCache.txt and rerun cmake.On Debian/Ubuntu, package name is libncurses5-dev, on Redhat and derivates it is ncurses-devel.
如果cmake提示下列错误:
......
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:409 (MYSQL_CHECK_EDITLINE)
-- Configuring incomplete, errors occurred!
Debian/Ubuntu下需要安装libncurses5-dev;Redhat下需要安装ncurses-devel ,检查是否安装了ncurses包,如下所示,
缺少ncurses-devel包。检查和安装该包:
rpm -qa | grep ncurses
rpm -ivh ncurses-devel
安装方法、
下载地址:
http://mirror.centos.org/centos/6/os/x86_64/Packages/ncurses-devel-5.7-4.20090207.el6.x86_64.rpm
http://mirror.centos.org/centos/6/os/x86_64/Packages/ncurses-libs-5.7-4.20090207.el6.x86_64.rpm
devel安装需要依赖libs,执行以下命令:
rpm -ivh ncurses-libs-5.7-4.20090207.el6.x86_64.rpm rpm -ivh ncurses-devel-5.7-4.20090207.el6.x86_64.rpm
安装了ncurses-devel包后,rm删除/soft/mysql-5.6.26/CMakeCache.txt,然后上述cmake重新编译,编译成功。
注意:
如果没有编译成功,需要重新编译,需要清除旧的对象文件和缓存信息。
# make clean
# rm -f CMakeCache.txt
# rm -rf /etc/my.cnf
相关文章
- 最具人气的十八种IT认证资质
- php时区设置 warning: strtotime(): It is not safe to rely on the system's timezone settings
- ESX启动故障排除一“Cannot open the disk ‘XXXXXX.vmdk’ or one of the snapshot disks it depends on.”
- 整合zuul启动时报错Correct the classpath of your application so that it contains a single, compatible version of XXX
- SAP CRM One Order object type in line item - when it is filled
- The specified Android SDK Build Tools version (29.0.0) is ignored, as it is below the minimum suppor
- 已解决because it does not have a ‘pyproject.toml’ and the ‘wheel’ package is not installed. pip 23.1 wi
- 云原生时代,政企混合云场景IT监控和诊断的难点和应对之道
- auto property synthesis will not synthesize proterty ;it will be implementedby its superclass, use @
- 都说it程序员很卷,身心损伤难以挽回,那我们拼命工作到底又为了什么?
- 同样是IT行业,测试和开发薪资真就差这么大吗?
- 组合数学之Polya计数 TOJ1116 Let it Bead
- 零基础的小白从IT培训班出来后,是如何成为程序员,在IT行业发展的?