虚拟机virtualBox 使用make menuconfig -- uboot失败

今天想用一下uboot下的make menuconfig。发现make fail.

具体情况如下:

 *** Unable to find the ncurses libraries or the
 *** required header files.
 *** 'make menuconfig' requires the ncurses libraries.
 ***
 *** Install ncurses (ncurses-devel) and try again.
 ***
scripts/kconfig/Makefile:200: recipe for target 'scripts/kconfig/dochecklxdialog                                                                                                     ' failed
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
Makefile:477: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2

一开始以为报错的是ncures-devel 。所以执行了sudo apt-get install ncures-devel.

可是问题仍然报错: 

E: Unable to locate package ncurses-devel

以为是自己DNS没有配置。所以又找了这一片文章

[Ubuntu 18.04][resolv.conf]公共DNS设置 - Network Guide (zj-network-guide.readthedocs.io)

后来发现自己文件目录下没有这个文件/run/systemd/resolve/resolv.conf。

但是自己sudo apt-get update 仍然出现问题,问题如下:

Err:1 http://cn.archive.ubuntu.com/ubuntu xenial InRelease
  Temporary failure resolving 'cn.archive.ubuntu.com'
Err:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
  Temporary failure resolving 'security.ubuntu.com'
Err:3 http://cn.archive.ubuntu.com/ubuntu xenial-updates InRelease
  Temporary failure resolving 'cn.archive.ubuntu.com'

所以看网上的文章配置,有一篇这个文章 (71条消息) Ubuntu apt-get install出现“Temporary failure resolving 'cn.archive.ubuntu.com'”_奔狼的春晓的博客-CSDN博客配置自己的DNS.内容添加如下:

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 1.0.0.127
nameserver 114.114.114.115
nameserver 8.8.8.8

添加nameserver 114.114.114.114和8.8.8.8

然后执行 nslookup www.baidu.com

darton@darton:~/MYS6ULx-devel/04-Source/MYiR-iMX-uboot$ nslookup www.baidu.com
Server:         8.8.8.8
Address:        8.8.8.8#53

Non-authoritative answer:
www.baidu.com   canonical name = www.a.shifen.com.
Name:   www.a.shifen.com
Address: 112.80.248.76
Name:   www.a.shifen.com
Address: 112.80.248.75

执行sudo apt-get update , 这个update问题解决。

在网上看到的说:

(71条消息) ubuntu18.04 安装 ncurses_d19890104的博客-CSDN博客_在ubuntu18.04下,“apt-get install libncurses5-dev”安装上这个文章;

这个情况是一样的,同样遇到相同的错误:

*** Unable to find the ncurses libraries or the
 *** required header files.
 *** 'make menuconfig' requires the ncurses libraries.
 *** 
 *** Install ncurses (ncurses-devel) and try again.
 *** 
scripts/kconfig/Makefile:200: recipe for target 'scripts/kconfig/dochecklxdialog' failed
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
Makefile:477: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2

然后执行 sudo apt-get install libncurses5-dev libncursesw5-dev,由于第一个装过了。

执行了一下 sudo apt-get install libncursesw5-dev。 问题解决

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值