1、配置内核模块
pi@GalaxyGrand5:~/linux-raspberrypi-kernel_1.20170703-2 $ make menuconfig HOSTCC scripts/kconfig/mconf.o In file included from scripts/kconfig/mconf.c:23:0: scripts/kconfig/lxdialog/dialog.h:38:20: fatal error: curses.h: No such file or directory #include CURSES_LOC ^ compilation terminated. scripts/Makefile.host:124: recipe for target 'scripts/kconfig/mconf.o' failed make[1]: *** [scripts/kconfig/mconf.o] Error 1 Makefile:548: recipe for target 'menuconfig' failed make: *** [menuconfig] Error 2 pi@GalaxyGrand5:~/linux-raspberrypi-kernel_1.20170703-2 $ make menuconfig HOSTCC scripts/kconfig/mconf.o In file included from scripts/kconfig/mconf.c:23:0: scripts/kconfig/lxdialog/dialog.h:38:20: fatal error: curses.h: No such file or directory #include CURSES_LOC ^ compilation terminated. scripts/Makefile.host:124: recipe for target 'scripts/kconfig/mconf.o' failed make[1]: *** [scripts/kconfig/mconf.o] Error 1 Makefile:548: recipe for target 'menuconfig' failed make: *** [menuconfig] Error 2
2、解决方法
pi@GalaxyGrand5:~/linux-raspberrypi-kernel_1.20170703-2 $ sudo apt-get install libncurses5-dev 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 0 not upgraded. Need to get 154 kB/220 kB of archives. After this operation, 1,079 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main libncurses5-dev armhf 5.9+20140913-1+deb8u3 [154 kB] Fetched 154 kB in 4s (34.9 kB/s) Selecting previously unselected package libtinfo-dev:armhf. (Reading database ... 31492 files and directories currently installed.) Preparing to unpack .../libtinfo-dev_5.9+20140913-1+deb8u3_armhf.deb ... Unpacking libtinfo-dev:armhf (5.9+20140913-1+deb8u3) ... Selecting previously unselected package libncurses5-dev:armhf. Preparing to unpack .../libncurses5-dev_5.9+20140913-1+deb8u3_armhf.deb ... Unpacking libncurses5-dev:armhf (5.9+20140913-1+deb8u3) ... Setting up libtinfo-dev:armhf (5.9+20140913-1+deb8u3) ... Setting up libncurses5-dev:armhf (5.9+20140913-1+deb8u3) ...
3、安装完成后,再次重新配置
pi@GalaxyGrand5:~/linux-raspberrypi-kernel_1.20170703-2 $ make menuconfig HOSTCC scripts/kconfig/mconf.o SHIPPED scripts/kconfig/zconf.tab.c SHIPPED scripts/kconfig/zconf.lex.c SHIPPED scripts/kconfig/zconf.hash.c HOSTCC scripts/kconfig/zconf.tab.o HOSTCC scripts/kconfig/lxdialog/checklist.o HOSTCC scripts/kconfig/lxdialog/util.o HOSTCC scripts/kconfig/lxdialog/inputbox.o HOSTCC scripts/kconfig/lxdialog/textbox.o HOSTCC scripts/kconfig/lxdialog/yesno.o HOSTCC scripts/kconfig/lxdialog/menubox.o HOSTLD scripts/kconfig/mconfscripts/kconfig/mconf Kconfig *** End of the configuration.*** Execute 'make' to start the build or try 'make help'.
注意:本文归作者所有,未经作者允许,不得转载