免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2445 | 回复: 4
打印 上一主题 下一主题

redhat enterprise linux as4 编译内核 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-09-03 10:58 |只看该作者 |倒序浏览
请帮高手忙解决下列问题 谢谢!我的是redhat enterprise linux as4 安装在虚拟机下面 我想编译系统的内核 但是在文件夹/usr/src下面没有任何内容 用G搜索了些重新编译的资料 但是编译过程中都失败了 内核是2.6.9 -5.EL 我安装好了development tools 并且发现在/usr/src下有两个文件夹 kernel and redhat 请问接下来怎么做 我的编译是在Xwindows下面

论坛徽章:
0
2 [报告]
发表于 2007-09-03 12:29 |只看该作者
原帖由 cater520 于 2007-9-3 10:58 发表
请帮高手忙解决下列问题 谢谢!我的是redhat enterprise linux as4 安装在虚拟机下面 我想编译系统的内核 但是在文件夹/usr/src下面没有任何内容 用G搜索了些重新编译的资料 但是编译过程中都失败了 内核是2.6. ...


rhel4 沒放 kernel source binary rpm package, 需要編譯 kernel 請閱讀 RHEL4 release-notes 文件說明:

http://www.redhat.com/docs/manua ... lease-notes/as-x86/


  1. In order to eliminate the redundancy inherent in providing a separate package for the kernel source code when that source code already exists in the kernel's .src.rpm file, Red Hat Enterprise Linux 4 no longer includes the kernel-source package. Users that require access to the kernel sources can find them in the kernel .src.rpm file. To create an exploded source tree from this file, perform the following steps (note that <version>  refers to the version specification for your currently-running kernel):

  2.    1.

  3.       Obtain the kernel-<version>.src.rpm file from one of the following sources:
  4.           *

  5.             The SRPMS directory on the appropriate "SRPMS" CD iso image
  6.           *

  7.             The FTP site where you got the kernel package
  8.           *

  9.             By running the following command:

  10.             up2date --get-source kernel
  11.    2.

  12.       Install kernel-<version>.src.rpm (given the default RPM configuration, the files this package contains will be written to /usr/src/redhat/)
  13.    3.

  14.       Change directory to /usr/src/redhat/SPECS/, and issue the following command:

  15.       rpmbuild -bp --target=<arch> kernel-2.6.spec

  16.       (Where <arch> is the desired target architecture.)

  17.       On a default RPM configuration, the kernel tree will be located in /usr/src/redhat/BUILD/
复制代码


--

论坛徽章:
0
3 [报告]
发表于 2007-09-03 13:37 |只看该作者
不是很明白  能再明白点吗 谢谢 我的系统在/usr/src下有两个目录  kernels  和  redhat  ,redhat下 有BUILD 和 SPECS目录  两个目录都为空  请问应该如何  谢谢

论坛徽章:
0
4 [报告]
发表于 2007-09-03 13:43 |只看该作者
原帖由 cater520 于 2007-9-3 13:37 发表
不是很明白  能再明白点吗 谢谢 我的系统在/usr/src下有两个目录  kernels  和  redhat  ,redhat下 有BUILD 和 SPECS目录  两个目录都为空  请问应该如何  谢谢


用  up2date 取得 kernel-source source rpm package, 或者是 cd disc 內 .src.rpm 的 kernel-source source rpm package, 用 rpmbuild 產生一個 kernel source 目錄結構環境即可使用。

建議你多看幾次這篇原文,因為已經告訴你取得方式與得到可以編譯 kernel source 目錄環境方式。

--

论坛徽章:
0
5 [报告]
发表于 2007-09-03 14:18 |只看该作者
谢谢  理解了那段话的意思  但是kernel-source rpm包哪里能够获取  我download了AS4 无法用来更新的   在ISO  image里面找了都没有该包  能否告知个download详细地址  谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP