LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 06-08-2011, 06:11 PM   #1
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Rep: Reputation: 69
I got a question about my kernel version...


I'm trying to install the drivers for my nvidia graphics card. I downloaded the shell script from the nvidia website. However, there's something peculiar going on. When I execute the shell script it says it cannot find my kernel headers, yet I can verify that my /usr/include/linux/kernel.h does exist. I have selinux on, but just installed os with it on, so contexts are fresh. Checked them as well.

After doing some research I found something out. When I run a 'uname -a' I get this.
Code:
Linux ariel 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44 EDT 2010 i686 i686 i386 GNU/Linux
Yet when I ran 'yum install kernel-devel kernel-headers' they installed the following versions.
Code:
kernel-headers-2.6.18-238.12.1.el5.i386
kernel-devel-2.6.18-238.12.1.el5.i686
Shouldn't they be
Code:
kernel-headers-2.6.18.194
kernel-devel-2.6.18.194
I see that the error in the nvidia shell script can't locate the header files for the RUNNING kernel version which makes sense. Why would yum install that version instead of the one in 'uname -a'?
Or am I misunderstanding something?

Last edited by trist007; 06-08-2011 at 06:26 PM.
 
Old 06-08-2011, 08:39 PM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,425

Rep: Reputation: 2826Reputation: 2826Reputation: 2826Reputation: 2826Reputation: 2826Reputation: 2826Reputation: 2826Reputation: 2826Reputation: 2826Reputation: 2826Reputation: 2826
Well both are pretty old versions so my first thought would be that your distro no longer supports
the older version of the kernel headers. I would possibly suggest upgrading the kernel to the minimum, ie 238,
so that you are supported. Other than that (and not knowing yum at all) you could try finding a copy of the older
headers and performing a manual install.
 
Old 06-09-2011, 04:48 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
The old version of 'kernel-devel' ( 194 ) may not be available.

# yum install kernel : Will update to "238".

And after a reboot, the Nvidia install should be possible.
 
Old 06-09-2011, 10:48 AM   #4
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Original Poster
Rep: Reputation: 69
Fantastic thank you. I was also inputting the wrong kernel source path. It was
Code:
sh Nvidia-x-x-xxxx.sh --kernel-source-path=/usr/src/kernels/2.6.19-243.x.x
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/boot directory and kernel version question Squidy Linux - Newbie 3 02-10-2011 09:26 AM
Question on kernel-Module version mismatch bin Linux - Newbie 3 08-13-2009 03:07 AM
Kernel Version Numbering Scheme - Question rrrssssss Linux - General 4 07-29-2007 05:10 PM
Newbie Question - Checking Kernel Version squall1986 Fedora 3 11-14-2006 03:28 PM
kernel update version question :) trey85stang General 4 03-12-2004 10:06 PM


All times are GMT -5. The time now is 04:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration