LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I tried. :| (https://www.linuxquestions.org/questions/linux-newbie-8/i-tried-%7C-351533/)

foo_bar_foo 08-13-2005 01:07 AM

Quote:


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

what about the above seems confusing or unclear ?

Orin 08-13-2005 01:16 AM

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?

btmiller 08-13-2005 01:45 AM

I'm guessing an argument to the NVIDIA driver install script, so you'd do

<install script command> --kernel-source-path=/path/to/your/kernel/source

If you have /usr/src/linux symlinked to your kernel source, it should be picked up automagically.

volvogga 08-13-2005 01:45 AM

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....

WhateverYourInstallCommandIs --kernel-source-path /usr/src/redhat/BUILD/kernel-*.*.*/

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.

Orin 08-13-2005 01:52 AM

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! :(

Orin 08-13-2005 01:53 AM

Yeah. That bit was resolved, so this thread can be locked, or whatever else.. Thanks for everyone's help. :)

Now on to the next problem. :|

volvogga 08-13-2005 02:25 AM

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.

http://www.fedorafaq.org/#nvidia

and the page of the author of the RPMs that describes what they are...

http://rpm.livna.org/livna-switcher.html

May be an alternative idea anyway, unless someone knows something to be amiss with these drivers.

Electro 08-13-2005 03:42 AM

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.

Orin 08-13-2005 12:02 PM

total 8
drwxr-xr-x 7 root root 4096 Jul 13 11:44 redhat

tuxdev 08-13-2005 12:05 PM

total 8? where is the rest of the output? You probably have to link like Electro said.

titanium_geek 08-13-2005 01:20 PM

to help future thread searchers, could you post a brief summary of the problem and solution?

thanks.

titanium_geek

Tinkster 08-13-2005 04:17 PM

Merged your two VERY closely related threads

Orin 08-13-2005 11:00 PM

Thank you for merging them. The issue was resolved with me switching to ubuntu instead of FC4. Life is now good and happy.


All times are GMT -5. The time now is 09:03 PM.