At this point I would like to point out that you should not be doing things like compiling kernels as root, let alone writing your own files into /usr/src. So I would recommend that once you have installed the kernel-sourcecode package, you switch back to a normal user and use:
cd ~ (or /tmp whatever) cp -r /usr/src/linux-2.6.9-5.0.3.EL . cd linux-2.6.9-5.0.3.EL cp configs/kernel-2.6.9-i686.config .config make oldconfig make menuconfig etc...
(Note, untested on CentOS-4. Perhaps someone could confirm). Regarding the kernel-sourcecode dependencies, many of them look optional and might be easily ignored with --nodeps. Be warned however... if you are having problems it might be best just to install them.
John.
Barry Brimer wrote:
Mario,
I believe you are in the wrong directory. According to the output below, your directory prompt reads :
[root@tux 2.6.9-5.0.3.EL-i686]
This suggests that you are in /usr/src/kernels/2.6.9-5.0.3.EL-i686 not /usr/src/linux-2.6.9-5.0.3.EL
Try this:
- cd /usr/src/linux-2.6.9-5.0.3.EL
- cp configs/kernel-2.6.9-i686.config .
- make menuconfig (configure kernel)
- make clean
- make rpm
- install RPM
- edit grub config if needed
Hope this helps, Barry
Quoting Mário Gamito lists@tuxdoit.com:
Hi Barry,
Thanks for the excelent tip, but in the end, stumble on the same shit (sorry for cursing, but i'm getting realy annoied):
Warm Regards, Mário Gamito
- make CHK include/linux/version.h CHK include/asm-i386/asm_offsets.h
/bin/sh: arch/i386/kernel/asm-offsets.s: No such file or directory UPD include/asm-i386/asm_offsets.h mv: cannot stat `include/asm-i386/asm_offsets.h.tmp': No such file or directory make[2]: *** [include/asm-i386/asm_offsets.h] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.65827 (%build)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.65827 (%build) make[1]: *** [rpm] Error 1 make: *** [rpm] Error 2 [root@tux 2.6.9-5.0.3.EL-i686]#
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
!DSPAM:4252939217451844717219!
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos