由于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
时间: 2024-10-06 07:00:25
由于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