You need the GNU readline library(ftp://ftp.gnu.org/gnu/readline/ ) to build this program yum -y install libtermcap-devel # 转:https://blog.csdn.net/dbcrocodile/article/details/8947352