本文共 6111 字,大约阅读时间需要 20 分钟。
guang@guang-kylin:~/Develop/linux-stable$ make menuconfig
HOSTCC scripts/basic/fixdep * Unable to find the ncurses libraries or the * required header files. * ‘make menuconfig’ requires the ncurses libraries.* Install ncurses (ncurses-devel or libncurses-dev
* depending on your distribution) and try again.scripts/kconfig/Makefile:219: recipe for target ‘scripts/kconfig/dochecklxdialog’ failed
make[1]: * [scripts/kconfig/dochecklxdialog] Error 1 Makefile:528: recipe for target ‘menuconfig’ failed make: * [menuconfig] Error 2 guang@guang-kylin:~/Develop/linux-stable$sudo apt install ncurses-dev
guang@guang-ubuntu:~/Develop/busybox$ make menuconfig
HOSTCC scripts/basic/fixdep HOSTCC scripts/basic/split-include scripts/basic/split-include.c: In function ‘main’: scripts/basic/split-include.c:134:6: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] fgets(old_line, buffer_size, fp_target); ^sudo apt-get install libncurses5-dev libncursesw5-dev
guang@arm-vexpress:/ # cd etc/init.d/
guang@arm-vexpress:/etc/init.d # ls rcS guang@arm-vexpress:/etc/init.d # ls -al total 3 drwxr-xr-x 2 0 0 1024 Jun 11 18:26 . drwxr-xr-x 3 0 0 1024 Jun 11 18:26 .. -rw-r–r– 1 0 0 328 Jun 11 18:26 rcS guang@arm-vexpress:/etc/init.d # chmod -R 777 rcS guang@arm-vexpress:/etc/init.d # ls -al total 3 drwxr-xr-x 2 0 0 1024 Jun 11 18:26 . drwxr-xr-x 3 0 0 1024 Jun 11 18:26 .. -rwxrwxrwx 1 0 0 328 Jun 11 18:26 rcSguang@arm-vexpress:/etc/init.d # reboot
reboot: can’t open ‘/proc’: No such file or directory VFS: Mounted root (ext3 filesystem) on device 179:0. Freeing unused kernel memory: 1024K random: crng init done mount: mounting proc on /proc failed: No such file or directory mount: mounting tmpfs on /tmp failed: No such file or directory mount: mounting sysfs on /sys failed: No such file or directorycan’t open /dev/console: No such file or directory
can’t open /dev/console: No such file or directory can’t open /dev/console: No such file or directory can’t open /dev/console: No such file or directory can’t open /dev/console: No such file or directory can’t open /dev/console: No such file or directoryguang@guang-ubuntu:~/Develop/trainning/ko_file/20180611$ make
make -C /home/guang/Develop/linux-stable M=/home/guang/Develop/trainning/ko_file/20180611 modules make[1]: Entering directory ‘/home/guang/Develop/linux-stable’ Building modules, stage 2. MODPOST 1 modules /bin/sh: 1: scripts/mod/modpost: not found scripts/Makefile.modpost:92: recipe for target ‘__modpost’ failed make[2]: * [__modpost] Error 127 Makefile:1576: recipe for target ‘modules’ failed make[1]: * [modules] Error 2 make[1]: Leaving directory ‘/home/guang/Develop/linux-stable’ Makefile:17: recipe for target ‘default’ failed make: * [default] Error 2sudo apt-get install bison
sudo apt-get install flexguang@guang-kylin:~/Develop/linux-stable$ make clear
HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o YACC scripts/kconfig/zconf.tab.c /bin/sh: 1: bison: not found scripts/Makefile.lib:196: recipe for target ‘scripts/kconfig/zconf.tab.c’ failed make[2]: * [scripts/kconfig/zconf.tab.c] Error 127 Makefile:528: recipe for target ‘syncconfig’ failed make[1]: * [syncconfig] Error 2 make: * No rule to make target ‘clear’. Stop. guang@guang-kylin:~/Develop/linux-stable$sudo apt-get install bison
sudo apt-get install flexguang@guang-kylin:~/Develop/linux-stable$ make clear
LEX scripts/kconfig/zconf.lex.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf –syncconfig Kconfig* Configuration file “.config” not found!
* Please run some configurator (e.g. “make oldconfig” or
* “make menuconfig” or “make xconfig”).scripts/kconfig/Makefile:40: recipe for target ‘syncconfig’ failed
make[2]: * [syncconfig] Error 1 Makefile:528: recipe for target ‘syncconfig’ failed make[1]: * [syncconfig] Error 2 make: * No rule to make target ‘clear’. Stop. guang@guang-kylin:~/Develop/linux-stable$ make cleanguang@guang-kylin:~/Develop/linux-stable$ ls