错误提示:

cannot find -lncurses

这个错误的原因是没有安装ncurses-devel,所以解决办法也很简单,

yum install ncurses-devel

搞定.