The RHEL 4 Distribution does not install sources under /usr/src/linux-2.6. We need to build the source rpm to get the sources. Install kernel-<version>.src.rpm (given the default RPM configuration, the files this package contains will be written to /usr/src/redhat/) Change directory to /usr/src/redhat/SPECS/, and issue the following command: rpmbuild -bp --target=<arch> kernel.spec (Where <arch> is the desired target architecture.) On a default RPM configuration, the kernel tree will be located in /usr/src/redhat/BUILD/. In resulting tree, the configurations for the specific kernels shipped in Red Hat Enterprise Linux 3.95 are in the /configs/ directory. For example, the i686 SMP configuration file is named /configs/kernel-<version>-i686-smp.config. Issue the following command to place the desired configuration file in the proper place for building: cp <desired-file> ./.config Issue the following command: make oldconfig thanks, murthy. -----Original Message----- From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Dave Francis Sent: Monday, May 09, 2005 10:08 AM To: redhat-list@xxxxxxxxxx Subject: EL4 ES kernel recompile Hi Guys Im trying to recompile the kernel in EL4 ES in order to get the clock running correctly under VMware ESX. As Redhat dont provide much info on the process for this under EL4, ive kinda worked blind up to here, and now Im stuck. Fresh build. First, ive updated (up2date). (inc Kernel). Next I installed the kernel source through up2date. Then I tried a make mrproper, and thats where Im stuck. ************************************ [root@albns001 2.6.9-5.0.5.EL-i686]# make mrproper grep: /usr/include/bits/stat.h: No such file or directory scripts/Makefile.clean:10: Documentation/DocBook/Makefile: No such file or directory make[1]: *** No rule to make target `Documentation/DocBook/Makefile'. Stop. make: *** [_mrproper_Documentation/DocBook] Error 2 [root@albns001 2.6.9-5.0.5.EL-i686]# pwd /usr/src/kernels/2.6.9-5.0.5.EL-i686 [root@albns001 2.6.9-5.0.5.EL-i686]# uname -a Linux albns001.nzaa.co.nz 2.6.9-5.0.5.EL #1 Fri Apr 8 14:21:35 EDT 2005 i686 i686 i386 GNU/Linux ******************************** Has anybody got any ideas about what Im doing wrong? All help appreciated. Cheers Dave ATTENTION: The information contained in this message and/or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any system and destroy any copies. Thank you. DISCLAIMER: To the maximum extent permitted by law, the sender and/or any related party is not liable (including in respect of negligence) for viruses or other defects or for changes made to this email or to any attachments. Before opening or using attachments, check them for viruses and other effects. -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list