zl程序教程

您现在的位置是:首页 >  其他

当前栏目

在Linux下编译MySQL时报错“No curses/termcap library found”解决方案

2023-02-18 16:39:17 时间

在编译MySQL时 #./configure –prefix=/usr/local/mysql –with-charset=gbk –with-extra-charsets=all

执行后出现如下错误: checking for tgetent in -ltermcap… no checking for termcap functions library… configure: error: No curses/termcap library found

解决方法: //加入参数–with-named-curses-libs=/usr/lib/libncurses.so.5 #./configure –prefix=/usr/local/mysql –with-charset=gbk –with-extra-charsets=all –with-named-curses-libs=/usr/lib/libncurses.so.5 #make WITH_CHARSET=gbk WITH_XCHARSET=all #make install