Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
ERROR: Unable to find the kernel source tree for the currently running kernel.
Please make sure you have installed the kernel source files for your
kernel; on Red Hat Linux systems, for example, be sure you have the
'kernel-source' rpm installed. If you know the correct kernel source
files are installed, you may specify the kernel source path with the
'--kernel-source-path' commandline option
Well...let's start with the fact that I've spent a few hours trying to find the damn kernel source. And I did, with the help of some awesome people here. And I installed it. And felt manly and proud. Unfortunately, nVidia was all like "No. You're not manly. You don't get to be proud." It told me I didn't install the source. So I cried for a little bit and moved on to trying to use the --kernel-source-path command, which did not work, as the edit in the above post states.
:Edit:
Whee! Got the source to function. Sort-of. I get a new error message now:
-> Performing CC test with CC="cc".
ERROR: If you are using a Linux 2.4 kernel, please make sure
you either have configured kernel sources matching your
kernel or the correct set of kernel headers installed
on your system.
If you are using a Linux 2.6 kernel, please make sure
you have configured kernel sources matching your kernel
installed on your system. If you specified a separate
output directory using either the "KBUILD_OUTPUT" or
the "O" KBUILD parameter, make sure to specify this
directory with the SYSOUT environment variable or with
the equivalent nvidia-installer command line option.
Depending on where and how the kernel sources (or the
kernel headers) were installed, you may need to specify
their location with the SYSSRC environment variable or
the equivalent nvidia-installer command line option.
It's a step in the...uhm. Well..not sure if it's the right direction, per-se, but it's definitely a step. So what now?
DISCLAIMER: I have never tried anything as deep (at least it seems deep to me) as what you are trying to do. This is the result of a few random thoughts that I have had sense reading your threads.
The "--" usually indicates a command line switch in linux (add on option for a command). So, from the information that came from the page with the directions that you got your source code from, I would think that your command would read like this....
substituting the *'s for your kernel version numbers.
Hope that works. Being defeated by your own computer really hurts the pride. We've all been there at one time or another.
*EDIT*
Whoops. I was looking up the Nvidia directions while I was writing the post and didn't hit refresh to check on the postings. Sorry about this. Disregard all.
Yeah, I got past the --kernel-source-path bit, but it's the next problem that I'm having a real issue with. The only thing I am trying to do is install my damn video card drivers so I can run something silly like Q3 or CS1.5, or hell...even 1024x768!
Just something else I ran across that I thought you may be interested in, this page is supposed to describe downloading a driver that is already configured and ready to go for your kernel.
You need the kernel source code or kernel headers in /usr/src. Also you will need to make a symbolic link called /usr/src/linux that points to the kernel source or kernel header directory. The installer uses /usr/src/linux to find out the path to your kernel source or kernel headers. Type `ls -l /usr/src` and post the output.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.