【错误记录】编译 Linux 内核报错 ( Unable to find the ncurses package. )
文章目录
- 一、报错信息
- 二、解决方案
一、报错信息
编译 Linux 内核 , 执行
make menuconfig
配置菜单命令 , 报如下错误 :
root@ubuntu:~/kernel/linux-5.6.14# make menuconfigHOSTCC scripts/basic/fixdep
*
* 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:214: 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
root@ubuntu:~/kernel/linux-5.6.14#
二、解决方案
执行
sudo apt-get install ncurses-dev
命令 , 安装 ncurses ;
安装过程 :
root@ubuntu:~/kernel/linux-5.6.14# sudo apt-get install ncurses-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libncurses5-dev' instead of 'ncurses-dev'
The following additional packages will be installed:libtinfo-dev
Suggested packages:ncurses-doc
The following NEW packages will be installed:libncurses5-dev libtinfo-dev
0 upgraded, 2 newly installed, 0 to remove and 154 not upgraded.
Need to get 252 kB of archives.
After this operation, 1,461 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libtinfo-dev amd64 6.0+20160213-1ubuntu1 [77.4 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libncurses5-dev amd64 6.0+20160213-1ubuntu1 [175 kB]
Fetched 252 kB in 1s (133 kB/s)
Selecting previously unselected package libtinfo-dev:amd64.
(Reading database ... 212109 files and directories currently installed.)
Preparing to unpack .../libtinfo-dev_6.0+20160213-1ubuntu1_amd64.deb ...
Unpacking libtinfo-dev:amd64 (6.0+20160213-1ubuntu1) ...
Selecting previously unselected package libncurses5-dev:amd64.
Preparing to unpack .../libncurses5-dev_6.0+20160213-1ubuntu1_amd64.deb ...
Unpacking libncurses5-dev:amd64 (6.0+20160213-1ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libtinfo-dev:amd64 (6.0+20160213-1ubuntu1) ...
Setting up libncurses5-dev:amd64 (6.0+20160213-1ubuntu1) ...
root@ubuntu:~/kernel/linux-5.6.14#
【错误记录】编译 Linux 内核报错 ( Unable to find the ncurses package. )相关推荐
- 编译linux内核报错‘make menuconfig‘ requires the ncurses libraries
报错 *** Unable to find the ncurses libraries or the*** required header files.*** 'make menuconfig' re ...
- 【错误记录】编译 Linux 内核报错 ( fatal error: openssl/opensslv.h: No such file or directory )
文章目录 一.报错信息 二.解决方案 一.报错信息 编译 Linux 内核 , 执行 sudo make 命令 , 开始正式编译 Linux 内核 , 报如下错误 : root@ubuntu:~/ke ...
- 【错误记录】编译 Linux 内核报错 ( /bin/sh: 1: bison: not found )
文章目录 一.报错信息 二.解决方案 一.报错信息 编译 Linux 内核 , 执行 make menuconfig 配置菜单命令 , 报如下错误 : root@ubuntu:~/kernel/lin ...
- 【错误记录】编译 Linux 内核报错 ( /bin/sh: 1: flex: not found )
文章目录 一.报错信息 二.解决方案 一.报错信息 编译 Linux 内核 , 执行 make menuconfig 配置菜单命令 , 报如下错误 : root@ubuntu:~/kernel/lin ...
- 编译linux内核报错,/bin/sh: 1: flex: not foundscripts/Makefile.host:9: recipe for target ‘scripts/kconfig/
linux kernel 编译报错,执行make menuconfig,报错如下: HOSTCC scripts/basic/fixdep UPD scripts/kconfig/mco ...
- linux 内核 报错,根据epc定位linux内核报错.pdf
根据epc定位linux内核报错.pdf 韩⼤卫@吉林师范⼤学 2014.12.10 转载请表明出处 ************************************************* ...
- linux oracle 失败怎么办,Linux开机报错unable to load selinux policy怎么办?
Linux在开机的时候提示unable to load selinux policy错误,导致系统无法进入,通常是由2个情况所导致的,下面小编就给大家介绍下Linux开机报错unable to loa ...
- 【错误记录】VMware 虚拟机报错 ( 向 VMWare 虚拟机中的 Ubuntu 系统拷贝文件时磁盘空间不足 ② | 删除交换空间 )
文章目录 一.报错信息 二.解决方案 一.报错信息 在 [错误记录]VMware 虚拟机报错 ( 向 VMWare 虚拟机中的 Ubuntu 系统拷贝文件时磁盘空间不足 ) 博客中 , 给出了解决方案 ...
- Linux 编译时查找错误字符,编译Linux内核时出现“fatal error: linux/netfilter/xt_dscp: No such file or directory”...
编译Linux内核时出现"fatal error: linux/netfilter/xt_dscp: No such file or directory".下面开始查找原因. 第一 ...
- 【错误记录】解压 Linux 内核报错 ( Can not create symbolic link : 客户端没有所需的特权 | Windows 中配置 7z 命令行执行解压操作 )
文章目录 一.报错信息 二.解决方案 一.报错信息 二.解决方案 查看 7zip 软件的安装路径 E:\Program Files\7-Zip , 其中 7z.exe 和 7z.dll 就是执行所需的 ...
最新文章
- 远程桌面的分辨率最大不会超过本机真实物理机的分辨率
- Ionic 存储目录 CORS
- Oracle数据库无法启动解决方法
- Asp.net 中使用单独类文件
- 收藏一个在线思维导图的制作网站
- 基于JavaSpringmvc+myabtis+html的鲜花商城系统设计和实现
- c调用python gensim包_Jupyter Notebooks嵌入Excel并使用Python替代VBA宏
- 数仓系列 | Flink 窗口的应用与实现
- jsp el表达式无法正常显示解决方法
- android 印章,android 印章 控件
- 类似于wps的linux软件,出了Office、WPS还有哪些好用的办公软件?
- 用php打印出日历_php简单日历函数
- java开发本科应届生薪资大概是多少?外行人最少15k,25k是人均水平...
- 最新《微专业Android安卓开发工程师课程》
- sendmail danted
- [Layui]JS实现Layui树形表格treetable演示下载
- 域用户桌面显示计算机名,用Bginfo设置域客户端桌面显示主机名和IP地址信息
- c# 小票机打印二维条码_C# winform小票打印
- 分享到QQ空间、新浪微博、腾讯微博和人人网
- 从头开始构建Book Recommender引擎并将其部署到Web应用程序