lin@lin-machine:~/linux-2.6.35.3$ 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
解决思路
ncurses是字符终端下屏幕控制的基本库。可能很多新开发的程序已经不再使用。假如要编译一些老的程序,还是会经常碰到。
解决这个问题可以通过下面的解决方法来搞定。打开一个终端输入下面这条语句按回车进行安装即可。
apt-get install libncurses5-dev
lin@lin-machine:~/linux-2.6.35.3$ sudo apt-get install libncurses5-dev [sudo] password for lin: Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libtinfo-dev Suggested packages: ncurses-doc The following NEW packages will be installed: libncurses5-dev libtinfo-dev 0 upgraded, 2 newly installed, 0 to remove and 438 not upgraded. Need to get 246 kB of archives. After this operation, 1,479 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://cn.archive.ubuntu.com/ubuntu/ trusty/main libtinfo-dev amd64 5.9+20140118-1ubuntu1 [76.3 kB] Get:2 http://cn.archive.ubuntu.com/ubuntu/ trusty/main libncurses5-dev amd64 5.9+20140118-1ubuntu1 [170 kB] Fetched 246 kB in 2s (121 kB/s) Selecting previously unselected package libtinfo-dev:amd64. (Reading database ... 174791 files and directories currently installed.) Preparing to unpack .../libtinfo-dev_5.9+20140118-1ubuntu1_amd64.deb ... Unpacking libtinfo-dev:amd64 (5.9+20140118-1ubuntu1) ... Selecting previously unselected package libncurses5-dev:amd64. Preparing to unpack .../libncurses5-dev_5.9+20140118-1ubuntu1_amd64.deb ... Unpacking libncurses5-dev:amd64 (5.9+20140118-1ubuntu1) ... Setting up libtinfo-dev:amd64 (5.9+20140118-1ubuntu1) ... Setting up libncurses5-dev:amd64 (5.9+20140118-1ubuntu1) ...
好了再make menuconfig一下,OK了