找到centos7安装的iso中的Packages的ncurses-devel-5.9-13.20130511.el7.x86_64.rpm rpm-ivhncurses-devel-5.9-13.20130511.el7.x86_64.rpm 找到系统是否安装了readline rpm-qa|grepreadline 结果安装了readline-6.2-9.el7.x86_64.rpm 需要在iso包中找到readline-devel-6.2-9.el7.x86_64.rpm rpm-ivhreadline-devel-6.2-9.el7.x86_64.