make menuconfig时出现的错误
**自己在配置Linux内核时make menuconfig时候一直出现错在百度中搜索很多解决办法但是但是一直没有解决,特别注意自己实在Ubuntu还是Centos
以下是在Ubuntu和在Centos中不同的解决方法
**
出现的错误:
sake@sake-qemu:~/freescale/kernel/src/linux-2.6.35-sitek20091229$ 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] 错误 1
make: *** [menuconfig] 错误 2
————————————————
一在Ubuntu中的解决办法
sudo apt-get install libncurses5-dev;
二.在Centos中的解决办法
sudo apt-get install lncurses-dev;
在解决问题大的时候还会出现一种错误:
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package lncurses-dev
解决:这是因为你在Ubuntu中使用了sudo apt-get install lncurses-dev;特别注意自己配置