LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-09-2006, 09:16 AM   #1
lnthai2002
Member
 
Registered: Jan 2005
Location: Montreal, QC, CANADA
Distribution: Red Hat Fedora
Posts: 135

Rep: Reputation: 15
cannot install nvidia driver on centOS stock kernel


Hi,
I have centOS kernel 2.6.9-22.0.1.106.unsupported and the stock kernel 2.6.9-22.0.1.EL installed with their kernel-devel packages.
At first i installed Nvidia driver sucessfully on the stock kernel. Then i need some driver for my tv capture card, so i changed to the unsupport kernel and installed the Nvidia driver for it. Because of that, the nvidia installer removed the driver for the stock kernel and installed it on the unsupport kernel.
Now i need to use oracle 10g so i must use the stock kernel. Thus, i reinstall the nvidia driver for it. However, this time nvidia installer complains about my kernel:
ERROR: Unable to load the kernel module 'nvidia.ko'. This is most likely
because the kernel module was built using the wrong kernel source files.
Please make sure you have installed the kernel source files for your
kernel and that they are properly configured; 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' command line option.
-> Kernel module load error: insmod: error inserting './usr/src/nv/nvidia.ko':

What's wrong with my kernel? How can i fix this problem?
BTW, have anyone experienced problem with oracle 10g on the centOS unsupport kernel?
Thanks in advance
 
Old 02-09-2006, 09:49 AM   #2
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
The problem is that the symlink /usr/src/linux should always be pointing to the kernel you are using. Since you installed the unsupported kernel last, the link is pointing over to that one. So, to fix the problem you'll have to manually repoint the link, something like this oughta do it:
Code:
rm /usr/src/linux
ln -s /usr/src/linux-2.6.9-22.0.1.106.unsupported /usr/src/linux
The path ofcourse varies on how the source directory for your kernel is named.
 
Old 02-09-2006, 03:15 PM   #3
lnthai2002
Member
 
Registered: Jan 2005
Location: Montreal, QC, CANADA
Distribution: Red Hat Fedora
Posts: 135

Original Poster
Rep: Reputation: 15
My system does not have the symlink /usr/src/linux. Inside /usr/src there are only 2 dir: kernels and redhat. I gonna try making a symlink anyway. Thanks for the advice
 
Old 02-10-2006, 03:09 AM   #4
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
Whjats inside those dirs then? Quite odd, ive never come across a distribution that breaks that symlink or structure, its so standard.. As far as I know, you can't even install the nvidia driver without that link as thats what it uses to custom-compile a module.. Tho, it is very much possible that they have prebuilt modules for CentOS official kernels.
 
Old 02-10-2006, 07:55 PM   #5
lnthai2002
Member
 
Registered: Jan 2005
Location: Montreal, QC, CANADA
Distribution: Red Hat Fedora
Posts: 135

Original Poster
Rep: Reputation: 15
This is what inside the /usr/src

[nhut_le@darkportal ~]$ ls /usr/src/
kernels redhat
[nhut_le@darkportal ~]$ ls /usr/src/kernels/
2.6.9-22.0.1.EL-i686 kernel-2.6.922.0.1.EL1216.tar.gz
2.6.9-22.0.2.106.unsupported-i686
[nhut_le@darkportal ~]$ ls /usr/src/redhat/
BUILD RPMS SOURCES SPECS SRPMS
[nhut_le@darkportal ~]$
 
Old 02-10-2006, 07:58 PM   #6
lnthai2002
Member
 
Registered: Jan 2005
Location: Montreal, QC, CANADA
Distribution: Red Hat Fedora
Posts: 135

Original Poster
Rep: Reputation: 15
U are right about the mistaken use of the source(the unsupported source is used instead of the stock source) however, since i dont see the symlink, i dont know how this actually work!!! Is there possible that the symlink is put somewhere else?
Thanks
Thai
 
  


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
Device driver problems under 2.6.12 kernel after upgrade from stock RH9 2.4.20-8 chuckleberry Linux - Software 1 12-10-2005 03:50 PM
Device driver problems under 2.6.12 kernel after upgrade from stock RH9 2.4.20-8 chuckleberry Red Hat 0 12-08-2005 07:46 PM
Upgrading stock 2.4.22 kernel to 2.5.x then to 2.6.6 with existing stock .config file Kyl3 Slackware 8 06-09-2004 05:34 PM
Install NVIDIA driver on kernel v. 2.4.18 J_Szucs Linux - Hardware 3 03-06-2004 03:11 PM


All times are GMT -5. The time now is 02:14 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration