LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1018|回复: 4

关于安装debian内核头文件的问题

[复制链接]
发表于 2009-9-14 11:03:33 | 显示全部楼层 |阅读模式
运行apt-get install linux-headers-2.6.30.5
提示couldn't find package linux-headers-2.6.30.5
运行apt-get install linux-headers只可以看到2.6.26-2及以下版本的头文件
应该怎样获取2.6.30.5内核的头文件呢?
发表于 2009-9-14 14:35:21 | 显示全部楼层
在对应的内核源代码里面有
这里找www.kernel.org
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-9-14 15:30:27 | 显示全部楼层
下载源代码了
怎样安装呢?
回复 支持 反对

使用道具 举报

发表于 2009-9-14 21:14:45 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2009-9-16 19:35:30 | 显示全部楼层
引自 LFS 手册第 8 章编译内核的节:

http://www.linuxfromscratch.org/ ... apter08/kernel.html
Warning

Some kernel documentation recommends creating a symlink from /usr/src/linux pointing to the kernel source directory. This is specific to kernels prior to the 2.6 series and must not be created on an LFS system as it can cause problems for packages you may wish to build once your base LFS system is complete.
Warning

The headers in the system's include directory should always be the ones against which Glibc was compiled, that is, the sanitised headers from this Linux kernel tarball. Therefore, they should never be replaced by either the raw kernel headers or any other kernel sanitized headers.

内核头文件不要随意变更!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表