1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
| 问题1: 3.14.38内核 root@simon-virtual-machine:/home/simon/FeiLing/src/linux-3.14.38# 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. *** /home/simon/FeiLing/src/linux-3.14.38/scripts/kconfig/Makefile:199: recipe for target 'scripts/kconfig/dochecklxdialog' failed make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1 Makefile:512: recipe for target 'menuconfig' failed make: *** [menuconfig] Error 2
答案1: sudo apt-get install ncurses-devel
问题2: 4.17.2内核 root@simon-virtual-machine:/home/simon/Src/linux-4.17.2# make menuconfig 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[1]: *** [scripts/kconfig/zconf.tab.c] Error 127 Makefile:528: recipe for target 'menuconfig' failed make: *** [menuconfig] Error 2
答案2:apt-get install bison -y
问题3: root@simon-virtual-machine:/home/simon/Src/linux-4.17.2# make menuconfig YACC scripts/kconfig/zconf.tab.c LEX scripts/kconfig/zconf.lex.c /bin/sh: 1: flex: not found scripts/Makefile.lib:188: recipe for target 'scripts/kconfig/zconf.lex.c' failed make[1]: *** [scripts/kconfig/zconf.lex.c] Error 127 Makefile:528: recipe for target
答案3: sudo apt-get install flex
问题4: 5.5.6内核 root@ubuntu:/home/robye/Kernel/linux-5.5.6# make menuconfig * * Unable to find the ncurses package. * Install ncurses (ncurses-devel or libncurses-dev * depending on your distribution). * * You may also need to install pkg-config to find the * ncurses installed in a non-default location. * scripts/kconfig/Makefile:212: recipe for target 'scripts/kconfig/mconf-cfg' failed make[1]: *** [scripts/kconfig/mconf-cfg] Error 1 Makefile:568: recipe for target 'menuconfig' failed make: *** [menuconfig] Error 2
答案4: sudo apt-get install libncurses5-dev
问题4: root@ubuntu:/home/robye/Kernel/linux-5.5.6# make "CANNOT GENERATE ORC METADATA FOR CONFIG_UNWINDER_ORC=Y, PLEASE INSTALL LIBELF-DEV, LIBELF-DEVEL OR ELFUTILS-LIBELF-DEVEL". STOP. 答案4: Ubuntu: sudo apt install libelf-dev CentOS: yum install elfutils-libelf-devel
|