Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
If you need it to compile something that relies on having the kernel source installed you should be OK if you only install the matching kernel-headers package.
Or get the official source from a kernel.org mirror and build it yourself.
ERROR: The kernel header file
'/home/willem/linux-2.4.20/include/linux/modversions.h' does not exist.
The most likely reason for this is that the kernel header files in
'/home/willem/linux-2.4.20/include' have not been configured.
and that file, indeed, is not there. Other files are, when i gave the path wrong to the installer, it said 'couldnt find kernel.h', so i am pointing to the right dir.
Did i download the wrong source? Or is there another solution?
First off, do you have kernel 2.4.20-20.9 installed? If you don't know which version you have, you can check by typing "uname -r" or "rpm -qa kernel". When you said that using kernel-source doesn't work, how so?
Also, is there a reason why the kernel source you did install is in the /home/... directory? I thought that it had to go to the /usr/src directory. Maybe try putting the kernel source there and run the installer again.
Originally posted by blaisepascal
[B]First off, do you have kernel 2.4.20-20.9 installed?
Yes
Quote:
Originally posted by blaisepascal When you said that using kernel-source doesn't work, how so?
This source isnt, the nvidia installer says so, see the error report in my previous post.
Quote:
Originally posted by blaisepascal Also, is there a reason why the kernel source you did install is in the /home/... directory? I thought that it had to go to the /usr/src directory. Maybe try putting the kernel source there and run the installer again.
There was no reason for, i gave the path to the nvidia installer using the parameter. I tried putting it in /usr/src but that didnt work either same error!
I did some searching and found the modversions.h, now im getting another error:
Code:
-> Building kernel module:
executing: 'cd ./usr/src/nv; make nvidia.o SYSINCLUDE=/usr/include'...
You appear to be compiling the NVIDIA kernel module with
a compiler different from the one that was used to compile
the running kernel. This may be perfectly fine, but there
are cases where this can lead to unexpected behaviour and
system crashes.
If you know what you are doing and want to override this
check, you can do so by setting IGNORE_CC_MISMATCH.
In any other case, set the CC environment variable to the
name of the compiler that was used to compile the kernel.
[1;31m*** Failed cc sanity check. Bailing out! ***
[0mmake: *** [gcc-check] Error 1
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.