由于python的命令补全需要使用到readline模块,在安装readline模式时,提示如下错误:
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
解决方法:
yum install -y ncurses-devel
转载于:https://blog.51cto.com/hezhang/1701509