ubuntu --make menuconfig

编译Kernel出现问题,经验总结如下:

1、进入linux内核,执行make menuconfig,出现如下错误:
   

*** Unable to find the ncurses libraries or the

 *** required header files.

 *** 'make menuconfig' requires the ncurses libraries.

 *** 

 *** Install ncurses (ncurses-devel) and try again.

 *** 



2、百度解决方案如下:
apt-get install libncurses apt-get install libncurses*
来安装libncurses库。 但是出现如下错误: root@lj:~# sudo apt-get install libncurses
正在读取软件包列表... 有错误!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/cn.archive.ubuntu.com_ubuntu_dists_oneiric-updates_restricted_binary-i386_Packages
E: 无法解析或打开软件包的列表或是状态文件。






3、百度发现解决方案: http://ihaveapc.com/2011/05/how-to-fix-problem-with-mergelist-varlibaptlists-error-in-ubuntu-11-04/ 输入如下:
sudo  rm  /var /lib /apt /lists /*  -vf
sudo  apt-get update



4、再次执行: apt-get install libncursesapt-get install libncurses*下载50多兆的包。ok。


5、执行: make menuconfig后。ok。
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值