LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 05-24-2006, 10:30 PM   #1
Peingune
Member
 
Registered: Oct 2002
Location: Ill
Distribution: Gentoo x86 2006.0
Posts: 89

Rep: Reputation: 16
Question path to kernel source?????


I'm installing NVidia drivers for my sound because FC5 defualt drivers make a whining noise through my speakers. my speakers (sound) was ok and well :-( when I go to install the drivers I get a kernel.h file not find so I point i to two directories

1. /usr/src/redhat/BUILD/kernel-2.6.16/linux-2.6.16.x86_64

then i pointed it to

2. /usr/include/linux this is where kernel.h is.

do i have to chmod the file so it will relize where the kernel.h is? or i'm i going crazy ; ; please help
 
Old 05-25-2006, 03:52 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
You need to install the kernel-devel package, not the kernel source. You can use the kernel source, but then you actually have to build the kernel.

Check that you have matching kernel and kernel devel packages with (this is an example from an FC4 system):

# rpm -qa | grep "kernel"
kernel-2.6.16-1.2108_FC4
kernel-2.6.16-1.2111_FC4
kernel-devel-2.6.16-1.2108_FC4
kernel-devel-2.6.16-1.2111_FC4

If you don't have the kernel-devel package installed:

yum -y install kernel-devel

Also, the current 8xxx drivers are causing problems on some hardware. If you experience problems after an apparently successful install you can visit the nVidia forum. In particular, there's a sticky howto for FC5.

Last edited by macemoneta; 05-25-2006 at 03:55 PM.
 
Old 05-25-2006, 07:49 PM   #3
Peingune
Member
 
Registered: Oct 2002
Location: Ill
Distribution: Gentoo x86 2006.0
Posts: 89

Original Poster
Rep: Reputation: 16
I got the same kernel devel package as my kernel as my kernel source. Here is my output

[root@localhost shaun]# rpm -qa | grep "kernel"
kernel-2.6.15-1.2054_FC5
kernel-module-ntfs-2.6.16-1.2122_FC5-2.1.26-0.rr.10.5
kernel-devel-2.6.16-1.2122_FC5
kernel-2.6.16-1.2122_FC5

umm to let you know I use

sh ./<nvidia package> --kernel-source-path /usr/include/linux to do the path and it's not working ; ;
 
Old 05-25-2006, 09:30 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
The path to the headers is in the kernel-devel package:

rpm -ql kernel-devel | head -n1
 
Old 05-26-2006, 07:23 AM   #5
Peingune
Member
 
Registered: Oct 2002
Location: Ill
Distribution: Gentoo x86 2006.0
Posts: 89

Original Poster
Rep: Reputation: 16
ok i checked it and nvidia drivers are still giving me a problem with compiling kernel module with kernel source is wrong because source doesn't match kernel lol oh man nvidia is nuts
 
  


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
the `source` command and my $PATH jayeola Programming 6 12-14-2005 10:45 PM
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 05:42 PM
Finding My --kernel-source-path CAL Linux - Newbie 6 04-14-2004 07:57 AM
What is the path to Linux Kernel source beginner16 Linux - Newbie 4 11-24-2003 04:21 AM
Linux Kernel Source Path smeckel Linux - Newbie 1 01-08-2002 05:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 06:06 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
Open Source Consulting | Domain Registration