make menuconfig时提示“error opening terminal”的解决方法

笔记

执行下面的命令即可解决

#一般都是TERM TERMINFO这两个环境变量错误引起的
#可以用echo $TERM 和echo $TERMINFO 查看是否正确
$ export TERM=vt100
$ export TERMINFO=/usr/share/terminfo
#再执行make menuconfig 基本即可正常
#如果还有问题,查看下ncurses库是否安装
$dpkg -l | grep ncurses
ii  lib32ncurses5                          5.9-4                                               shared libraries for terminal handling (32-bit)
ii  libncurses5                            5.9-4                                               shared libraries for terminal handling
ii  libncurses5:i386                       5.9-4                                               shared libraries for terminal handling
ii  libncurses5-dev                        5.9-4                                               developer's libraries for ncurses
ii  libncursesw5                           5.9-4                                               shared libraries for terminal handling (wide character support)
ii  libncursesw5:i386                      5.9-4                                               shared libraries for terminal handling (wide character support)
ii  mtr-tiny                               0.80-1ubuntu1                                       Full screen ncurses traceroute tool
ii  ncurses-base                           5.9-4                                               basic terminal type definitions
ii  ncurses-bin                            5.9-4                                               terminal-related programs and man pages
ii  ncurses-term                           5.9-4                                               additional terminal type definitions
#如果未安装使用apt-get install 命令安装此库

你可能感兴趣的:(make menuconfig时提示“error opening terminal”的解决方法)