- 论坛徽章:
- 0
|
原帖由 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/
- 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):
- 1.
- Obtain the kernel-<version>.src.rpm file from one of the following sources:
- *
- The SRPMS directory on the appropriate "SRPMS" CD iso image
- *
- The FTP site where you got the kernel package
- *
- By running the following command:
- up2date --get-source kernel
- 2.
- Install kernel-<version>.src.rpm (given the default RPM configuration, the files this package contains will be written to /usr/src/redhat/)
- 3.
- Change directory to /usr/src/redhat/SPECS/, and issue the following command:
- rpmbuild -bp --target=<arch> kernel-2.6.spec
- (Where <arch> is the desired target architecture.)
- On a default RPM configuration, the kernel tree will be located in /usr/src/redhat/BUILD/
复制代码
-- |
|