如何安装ncurses头文件?

我试图配置内核,我得到以下错误。 有人可以告诉我应该怎么做吗?

root@nitr-desktop:/usr/src/linux# make menuconfig *** Unable to find the ncurses libraries or the *** required header files. *** 'make menuconfig' requires the ncurses libraries. *** *** Install ncurses (ncurses-devel) and try again. *** make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1 make: *** [menuconfig] Error 2 

打开终端并使用以下命令安装libncurses-dev:

 sudo apt-get install libncurses-dev 

以上问题现在解决了。 我所做的只是:

 sudo apt-get update sudo apt-get install ncurses-dev 

在Ubuntu 17.04上测试过

你应该安装libncurses5-dev libncursesw5-dev

 apt install libncurses5-dev libncursesw5-dev 

参考文献: https : //www.cyberciti.biz/faq/linux-install-ncurses-library-headers-on-debian-ubuntu-centos-fedora/