Kernel header files needed for Nvidia driver installation
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
Kernel header files needed for Nvidia driver installation
I can't seem to find kernel header files for my exact kernel (2.4.22-10mdk) I found one for 2.4.18-45mdk but I don't think they will fit exactly. I need them for the nvidia driver installer to use them to make a kernel module interface.
When I used the headers from /usr/include/linux/ the installer couldn't compile the kernel interface, the log returned me the error that "you should not directly include /usr/include/linux files! These are glib internal and probably will not suit the kernel you are running".
Or is there some other way to make Nvidia successfully use the headers?
Help!
*Sorry if I posted this in the wrong place, I don't know where to put it, Nvidia driver installation (hardware) or kernel related stuff (general I assume?)
You know, I already did that. Header files for my kernel don't seem to exist. I only found the source rpm, which doesn't have any header files, only object code and /lib/module files....
Alternately, instead of using that RPM (I tried DeadRat and found the RPM system terribly flawed) why not compile your kernel from source using the new 2.4.23 kernel?
I sort of had a bad experience compiling a kernel, when I used my original config file, it would fail at loading at modules and when I did the config myself, it would fail during compilation of bzImage...
Unless I could have a better tutorial...I selected all the things I needed like USB and whatnot and printer serial support but some of these things failed at compilation!
Worse, I thought my original config file would hold stuff like USB, since it came with Mandrake 9.2...
Originally posted by natalinasmpf I sort of had a bad experience compiling a kernel, when I used my original config file, it would fail at loading at modules and when I did the config myself, it would fail during compilation of bzImage...
Unless I could have a better tutorial...I selected all the things I needed like USB and whatnot and printer serial support but some of these things failed at compilation!
Worse, I thought my original config file would hold stuff like USB, since it came with Mandrake 9.2...
Compiling a new kernel can be the breaking of your system, but it really is where you unleash the raw power of Linux. Last night when I installed my new kernel, this box booted much faster than before. You must know your hardware very well, or you probably won't get it right. There are several kernel compile guides, and many places to find them. It amazes me that so many people can write about doing the same thing and have different steps.
The guide I used last night was the one by Dr. Ozz. I've recompiled so many times now that I know the steps. I tried a different guide just for Slackware last time and it didn't work, after following the instructions verbosely. This time I edited LILO without anyone's suggestions, just by how I know LILO works. And now it boots either my new kernel, or the old kernel, flawlessly.
Having never used Mandrake, I can't advise you. This one thing I will say. If, for some reason, you reinstall, try Slackware. If you search LQ, you'll find some threads with similar problems attempting a kernel compile for Mandrake. And that guide by Dalek I suggested in your other thread will probably be invaluable to you.
I had the exact same problem - needed the kernel source for Mandrake 9.2 so I could compile the nVidia nForce2 drivers. Luckily, rpmfind.net came to the rescue.
Thank you very much, the source rpm comes with the proper header files. Yay! Installation was very smooth after that. Except WineX doesn't recognise the the 4944 drivers. I have to fall back on an earlier driver, agh . Thanks anyway!
I shall try compiling a new kernel sometime, when I get a new hard drive for a different root partition, so one won't mess up the other...I know how to install a new kernel, its just that configuring one without conflicts is the hardest part, not even the compiling part lol.
Originally posted by natalinasmpf Thank you very much, the source rpm comes with the proper header files. Yay! Installation was very smooth after that. Except WineX doesn't recognise the the 4944 drivers. I have to fall back on an earlier driver, agh . Thanks anyway!
I shall try compiling a new kernel sometime, when I get a new hard drive for a different root partition, so one won't mess up the other...I know how to install a new kernel, its just that configuring one without conflicts is the hardest part, not even the compiling part lol.
You can have more than one kernel in LILO. Just set it up properly and if your new kernel doesn't work like you need it to, you can boot back into the older kernel. I have 2 right now and some people have many kernels, for different applications.
As for WineX, that's not good news to me. I need to run a couple of programs that are written for Windoze in Linux to be able to dump Windoze.
I know how to set it up, its just that in my experience in using the new kernel, if it fails, it will mess up the existing modules/shared object files/whatnot, that forced me to reinstall. The old kernel even froze when booting.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.