配置内核时出现如下错误:
liuxin@sunshine-virtual-machine:~/work/nfs_root/system/linux-2.6.22.6$ make menuconfig HOSTCC scripts/kconfig/lxdialog/checklist.o In file included from scripts/kconfig/lxdialog/checklist.c:24:0: scripts/kconfig/lxdialog/dialog.h:32:20: fatal error: curses.h: 没有那个文件或目录 #include CURSES_LOC ^ compilation terminated. make[1]: *** [scripts/kconfig/lxdialog/checklist.o] 错误 1 make: *** [menuconfig] 错误 2 liuxin@sunshine-virtual-machine:~/work/nfs_root/system/linux-2.6.22.6$
上网查了一下,原因是因为我的ubuntu系统缺少“ncurses devel”套件
安装ncurses devel套件:
sudo apt-get install libncurses5-dev
再次执行:
make menuconfig
就能正常执行了如下图: