编译 linux 内核3.5.4

由于课程需要,需要编译linux内核3.5.4,过程如下:

1,下载kernel,解压,进入内核查看文件

       #wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.5.4.tar.bz

       #tar xjvf linux-3.5.4.tar.bz2 

        cd linux-3.5.4 

2,

 清除以前编译时留下的配置文件,最后用基于文本的选单式配置界面进行内核配置,

         

      $make mrproper

     $make menuconfig

提示错误,

summer@summer-HP-Compaq-6515b-GX548PA-AB2:/home/linux-3.5.4$ 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.
 ***
make[1]: *** [scripts/kconfig/dochecklxdialog] 错误 1
make: *** [menuconfig] 错误 2

解决办法:1. 根据提示,需要安装ncurses-devel的库,但是,通过命令

                    s udo apt-cache search ncurses

                     查到N多信息;

光是以libncurses开头的就有这么多

  1. libncurses-gst - Ncurses bindings for GNU Smalltalk  
  2. libncurses-ruby - Transitional package for ruby-ncurses  
  3. libncurses-ruby1.8 - Transitional package for ruby-ncurses  
  4. libncurses-ruby1.9 - Transitional package for ruby-ncurses  
  5. libncurses-ruby1.9.1 - Transitional package for ruby-ncurses  
  6. libncursesada-doc - Ada binding to the ncurses text interface library: documentation  
  7. libncursesada1 - Ada binding to the ncurses text interface library: shared library  
  8. libncursesada1-dbg - Ada binding to the ncurses text interface library: debug symbols  
  9. libncursesada1-dev - Ada binding to the ncurses text interface library: development
                  2. 放狗搜一下,看到说只要安装libncurses5-dev就够了。 sudo apt-get install libncurses5-dev

     运行完make menuconfig即可。

3,


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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值