Ubuntu8.04下编译linux内核

今天看到师兄工位上有本Linux Kernel In a Nutshell,还是全英的影印版,所以就借过来看看,发现现在看英文的书渐渐适应了,还是比较容易的,书中开始介绍如何编译Linux内核,Linux内核大三的时候也学过编译过,但是当时编译比较简单,这次决定再重头到尾好好编译一下,首先下载linux kernel,再用secureCRT上传到Ubuntu 8.04中,接着开始编译。

1,tar -xzvf linux-2.6.***

2,cd linux-2.6.***

3,make menuconfig

执行这条命令时,出现了问题,后来上网查,查到了问题,答案如下:

hi. 

It's your distribution. Ubuntu doesn't come with the gcc headers installed. You can't even compile the simplest c application. 
All you have to do is to download the headers from the internet. The easisest way would be to use synaptic and to download 
the build-essential package. 

bye

 

http://forum.kernelnewbies.org/read.php?10,18,528

 

原来必须安装build-essential,安装好后,问题解决。

4,执行 make 命令,源代码进行编译

5,make modules_install install

6,

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值