Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Where are you issuing this "make" command?
Which kernel is this? (output of uname -r is nice)
Which distro is this?
(You can display your distro under your name by editing your profile.)
Anyway - at a first guess I'd say you were using the makefile in the headers directory instead of the one in the kernel source directory.
my distro is 4.3
kenel: 2.6.9-34.EL
I type the make command when I lie in /usr/src/kernel/2.6.9-34.EL dir.
But the error still show in screen.
Please, hepl me!
No it isn't. Distros have a name, as well as a number: like "Red Hat Enterprise Linux 4" or "Ubuntu 6.06 (Dapper Drake)". Perhaps this is "CentOS 4.3" or "RHEL4 AS"?
Show me the content of the directory:
Code:
ls /usr/src/kernel/2.6.9-34.EL
I don't think this directory is where your kernel source lives. i.e. Centos puts the development headers here and not the source code.
I normally make in /usr/src/linux
I'm using mandriva, but I noticed the same dir used with fedora and red hat.
Odd - in my installation of FC4, I had to run make in /usr/src/linux/<kernel-version>/ ... otherwise, how would it know which kernel to be making? And it weren't a link neither. Same with Ubuntu. But FC5, I understand, requires make to be run in /usr/src/linux/<kernel ver>/BUILD or something like that, and CentOS is like that too.
Did you follow that link in my last post?
Quote:
If you want to rebuild your kernel, you need to download the kernel SRPM.
Install it and go to the SPECS dir (usually /usr/src/redhat/SPECS) and issue the command:
rpmbuild -bp kernel-2.6.spec
Then you can configure your kernel in ../BUILD directory.
Last edited by Simon Bridge; 05-20-2006 at 05:01 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.