16ev200内核编译过程遇到的问题

在Ubuntu 13.04上编译16ev200内核时遇到curses.h缺失的错误,通过安装libncurses5-dev包解决。但在安装过程中遭遇依赖问题,如libncurses5、libtinfo-dev等。通过降级安装特定版本的依赖包,并使用aptitude工具解决依赖冲突,最终成功编译内核。

1. ubuntu13.04 16ev200 编译内核时报错
liu@ubuntu:~/hisi/16ev200/Hi3516EV200R001C01SPC011/01.software/board/Hi3516EV200_SDK_V1.0.1.1/osdrv/opensource/kernel/linux-4.9.y$ make ARCH=arm CROSS_COMPILE=arm-himix100-linux- menuconfig
  HOSTCC  scripts/kconfig/mconf.o
In file included from scripts/kconfig/mconf.c:23:0:
scripts/kconfig/lxdialog/dialog.h:38:20: fatal error: curses.h: No such file or directory
compilation terminated.
make[1]: *** [scripts/kconfig/mconf.o] Error 1
make: *** [menuconfig] Error 2


2. 百度查需要安装libncurses5-dev 包,安吧,出错了,需要安装依赖包
liu@ubuntu:~/hisi/16ev200/Hi3516EV200R001C01SPC011/01.software/board/Hi3516EV200_SDK_V1.0.1.1/osdrv/opensource/kernel/linux-4.9.y$ sudo apt-get install libncurses5-dev 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libncurses5-dev : Depends: libncurses5 (= 5.9-4) but 5.9-10ubuntu4 is to be installed
                   Depends: libtinfo-dev (= 5.9-4) but it is not going to be installed
                   Depends: ncurses-bin (= 5.9-4) but 5.9-10ubuntu4 is to be installed
E: Unable to correct problems, you have held broken packages.


3. 从最下面的开始安装,安装成功
liu@ubuntu:~/hisi/16ev200/Hi3516EV200R001C01SPC011/01.software/board/Hi3516EV200_SDK_V1.0.1.1/osdrv/opensource/kernel/linux-4.9.y$ sudo apt-get install ncurses-bin=5.9-4
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be DOWNGRADED:
  ncurses-bin
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 2 not upgraded.
Need to get 151 kB of archives.
After this operation, 4,096 B disk space will be freed.
Do you want to continue [Y/n]? y
Get:1 http://mirrors.163.com/ubuntu/ precise/main ncurses-bin i386 5.9-4 [151 kB]
Fetched 151 kB in 0s (417 kB/s) 
dpkg: warning: downgrading ncurses-bin from 5.9-10ubuntu4 to 5.9-4
(Reading database ... 158961 files and directories currently installed.)
Preparing to replace ncurses-bin 5.9-10ubuntu4 (using .../ncurses-bin_5.9-4_i386.deb) ...
Unpacking replacement ncurses-bin ...
Processing triggers for man-db ...
Setting up ncurses-bin (5.9-4) ...


4. 安装完的那个试一下 是有作用的
liu@ubuntu:~/hisi/16ev200/Hi3516EV200R001C01SPC011/01.software/board/Hi3516EV200_SDK_V1.0.1.1/osdrv/opensource/kernel/linux-4.9.y$ sudo apt-get install libncurses5-dev 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libncurses5-dev : Depends: libncurses5 (= 5.9-4) but 5.9-10

评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值