日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

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

發布時間:2025/6/17 linux 47 豆豆
生活随笔 收集整理的這篇文章主要介紹了 【错误记录】编译 Linux 内核报错 ( /bin/sh: 1: bison: not found ) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

文章目錄

  • 一、報錯信息
  • 二、解決方案





一、報錯信息



編譯 Linux 內核 , 執行

make menuconfig

配置菜單命令 , 報如下錯誤 :

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





二、解決方案



執行

sudo apt-get install bison

命令 , 安裝 bison ;

安裝過程如下 :

root@ubuntu:~/kernel/linux-5.6.14# sudo apt-get install bison -y Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed:libbison-dev Suggested packages:bison-doc The following NEW packages will be installed:bison libbison-dev 0 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.archive.ubuntu.com/ubuntu xenial/main amd64 libbison-dev amd64 2:3.0.4.dfsg-1 [338 kB] Get:2 http://us.archive.ubuntu.com/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 mode root@ubuntu:~/kernel/linux-5.6.14#

總結

以上是生活随笔為你收集整理的【错误记录】编译 Linux 内核报错 ( /bin/sh: 1: bison: not found )的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。