Build kernel

nasri@ubuntu:~/work/linux-5.1.7$ make menuconfig
*
* Unable to find the ncurses package.
* Install ncurses (ncurses-devel or libncurses-dev
* depending on your distribution).
*
scripts/kconfig/Makefile:208: recipe for target 'scripts/kconfig/mconf-cfg' failed
make[1]: *** [scripts/kconfig/mconf-cfg] Error 1
Makefile:552: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2

nasri@ubuntu:~/work/linux-5.1.7$ sudo apt-get install ncurses-dev

 

 

nasri@ubuntu:~/work/linux-5.1.7$ make menuconfig
  UPD     scripts/kconfig/mconf-cfg
  HOSTCC  scripts/kconfig/mconf.o
  HOSTCC  scripts/kconfig/lxdialog/checklist.o
  HOSTCC  scripts/kconfig/lxdialog/inputbox.o
  HOSTCC  scripts/kconfig/lxdialog/menubox.o
  HOSTCC  scripts/kconfig/lxdialog/textbox.o
  HOSTCC  scripts/kconfig/lxdialog/util.o
  HOSTCC  scripts/kconfig/lxdialog/yesno.o
  LEX     scripts/kconfig/lexer.lex.c
/bin/sh: 1: flex: not found
scripts/Makefile.lib:194: recipe for target 'scripts/kconfig/lexer.lex.c' failed
make[1]: *** [scripts/kconfig/lexer.lex.c] Error 127
Makefile:552: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2
nasri@ubuntu:~/work/linux-5.1.7$ sudo apt-get install flex

 

nasri@ubuntu:~/work/linux-5.1.7$ make menuconfig
  LEX     scripts/kconfig/lexer.lex.c
  YACC    scripts/kconfig/parser.tab.h
/bin/sh: 1: bison: not found
scripts/Makefile.lib:208: recipe for target 'scripts/kconfig/parser.tab.h' failed
make[1]: *** [scripts/kconfig/parser.tab.h] Error 127
Makefile:552: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2
nasri@ubuntu:~/work/linux-5.1.7$ sudo apt-get install bison
nasri@ubuntu:~/work/linux-5.1.7$ sudo cp /boot/config-4.18.0-15-generic .config
  UPD     include/generated/utsrelease.h
  HOSTCC  scripts/selinux/genheaders/genheaders
  HOSTCC  scripts/selinux/mdp/mdp
  HOSTCC  scripts/bin2c
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/recordmcount
  HOSTCC  scripts/sortextable
  HOSTCC  scripts/asn1_compiler
  HOSTCC  scripts/sign-file
scripts/sign-file.c:25:10: fatal error: openssl/opensslv.h: No such file or directory
 #include 
          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.host:92: recipe for target 'scripts/sign-file' failed
make[1]: *** [scripts/sign-file] Error 1
Makefile:1065: recipe for tar
sudo apt-get install libssl-dev

 

你可能感兴趣的:(Linux,内核)