安装Python readline模块

下载readline-6.2.4.1.tar.gz (http://down.51cto.com/data/1966660


运行python setup.py install


报错:

gcc: readline/libreadline.a: No such file or directory

gcc: readline/libhistory.a: No such file or directory 


解决:

yum -y install readline-devel

yum -y install patch