Make menuconfig prompts "error opening terminal" solution. In Linux, make menuconfig or make config commands are used to compile embedded systems. These commands usually use the ncurses library, if the ncurses library is not correctly installed, the following error message may appear: Internal error opening terminal Linuxerror opening terminal xtermerror opening terminal vt100error opening terminal vt102error opening terminal unknownerror opening terminal cgywin... solution: www.2cto.com 1. first, check whether the ncurses library is correctly installed. On debian and Ubuntu, you can use dpkg-l | grep ncurses to check whether the ncurses library is installed. 2. If ncurses has been installed, check whether the two environment variables "TERM" and "TERMINFO" have been set correctly. If not set correctly, you must set it to the correct value. $ Echo $ TERM $ echo $ TERMINFO the TERMINFO path should be set to the terminfo path, such as/usr/share/terminfo or/lib/terminfo. Run the following command to view the storage location of terminfo: $ whereis terminfoterminfo: /etc/terminfo/lib/terminfo/usr/share/man/man5/terminfo.5.gz check whether terminal information files are saved in the terminfo Directory: usually divided into, b, c, d... z. These letter directories contain the term information starting with the letter. For example, vt100 is placed in the "v" directory. The required term must contain the term information in the corresponding directory. After confirming the information, you can set the TERM and TERMINFO information: www.2cto.com $ export TERM = vt100 $ export TERMINFO =/usr/share/terminfo the above settings must ensure that/usr/share/terminfo contains the term information, and/usr/share/terminfo/v/vt100 exists. The setting of TERM may need to be set to Linux, vt100-putty and other different terms. Linux is usually used in the Linux console, vt100-putty as the name suggests is using putty remote login vt100 terminal. The following are the values of the two environment variables "TERM" and "TERMINFO" after the problem is solved in Ubuntu12.10. $ Echo $ TERMxterm $ echo $ TERMINFO/lib/terminfo/