300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > 【错误记录】编译 Linux 内核报错 ( /bin/sh: 1: bison: not found )

【错误记录】编译 Linux 内核报错 ( /bin/sh: 1: bison: not found )

时间:2021-08-28 22:06:15

相关推荐

【错误记录】编译 Linux 内核报错 ( /bin/sh: 1: bison: not found )

文章目录

一、报错信息二、解决方案

一、报错信息

编译 Linux 内核 , 执行

make menuconfig

配置菜单命令 , 报如下错误 :

root@ubuntu:~/kernel/linux-5.6.14# make menuconfigLEXscripts/kconfig/lexer.lex.cYACC scripts/kconfig/parser.tab.[ch]/bin/sh: 1: bison: not foundscripts/Makefile.host:17: recipe for target 'scripts/kconfig/parser.tab.h' failedmake[1]: *** [scripts/kconfig/parser.tab.h] Error 127Makefile:568: recipe for target 'menuconfig' failedmake: *** [menuconfig] Error 2root@ubuntu:~/kernel/linux-5.6.14#

二、解决方案

执行

sudo apt-get install bison

命令 , 安装 bison ;

安装过程如下 :

root@ubuntu:~/kernel/linux-5.6.14# sudo apt-get install bison -yReading package lists... DoneBuilding dependency tree Reading state information... DoneThe following additional packages will be installed:libbison-devSuggested packages:bison-docThe following NEW packages will be installed:bison libbison-dev0 upgraded, 2 newly installed, 0 to remove and 154 not upgraded.Need to get 597 kB of archives.After this operation, 1,795 kB of additional disk space will be used.Get:1 http://us./ubuntu xenial/main amd64 libbison-dev amd64 2:3.0.4.dfsg-1 [338 kB]Get:2 http://us./ubuntu xenial/main amd64 bison amd64 2:3.0.4.dfsg-1 [259 kB]Fetched 597 kB in 2s (252 kB/s)Selecting previously unselected package libbison-dev:amd64.(Reading database ... 212318 files and directories currently installed.)Preparing to unpack .../libbison-dev_2%3a3.0.4.dfsg-1_amd64.deb ...Unpacking libbison-dev:amd64 (2:3.0.4.dfsg-1) ...Selecting previously unselected package bison.Preparing to unpack .../bison_2%3a3.0.4.dfsg-1_amd64.deb ...Unpacking bison (2:3.0.4.dfsg-1) ...Processing triggers for man-db (2.7.5-1) ...Setting up libbison-dev:amd64 (2:3.0.4.dfsg-1) ...Setting up bison (2:3.0.4.dfsg-1) ...update-alternatives: using /usr/bin/bison.yacc to provide /usr/bin/yacc (yacc) in auto moderoot@ubuntu:~/kernel/linux-5.6.14#

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。