LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 04-28-2005, 12:04 PM   #1
Snerkel
Member
 
Registered: Jul 2004
Location: England
Distribution: 1 Gentoo 2005.0 system(desktop), 1 hardened-gentoo SeLinux stage1 server ;)
Posts: 262

Rep: Reputation: 30
Cant find kernel C headers on Mandrake 10.1


hi im trying to install a program and it is asking me to specify when the C headers are for my kernel but i dont know where they are located because there not in /usr/src/include.

Can some please give me some ideas as to where to look?

Thanks in advance

Edit.
Quote:
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

Last edited by Snerkel; 04-29-2005 at 09:16 AM.
 
Old 04-28-2005, 12:33 PM   #2
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
instal those headers


try
urpmi kernel-source

or

urpmi kernel-source-2.6
if u are using a 2.6 kernel

regards
 
Old 04-28-2005, 03:44 PM   #3
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
note that this is not the kernel-headers package, you want to leave that one alone.
 
Old 04-28-2005, 05:06 PM   #4
Snerkel
Member
 
Registered: Jul 2004
Location: England
Distribution: 1 Gentoo 2005.0 system(desktop), 1 hardened-gentoo SeLinux stage1 server ;)
Posts: 262

Original Poster
Rep: Reputation: 30
what shall i do then? The kernel headers must be on my system somewhere right ? how would i locate them ? This is the problem when running a distro that I havent compiled myself! I cant find anything.

Thanks again for all the help guys.
 
Old 04-29-2005, 09:15 AM   #5
Snerkel
Member
 
Registered: Jul 2004
Location: England
Distribution: 1 Gentoo 2005.0 system(desktop), 1 hardened-gentoo SeLinux stage1 server ;)
Posts: 262

Original Poster
Rep: Reputation: 30
Can anyone please give me some advice as to where to locate the headers?

Thanks.
 
Old 04-29-2005, 02:59 PM   #6
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
do what masand said, install the kernel-source package. There are two packages, one is the kernel-source package, which is the source for the kernel you are running (which will have the header files for your kernel in it). the other is called kernel-headers, which reside in /usr/include, they are the kernel include files that your glibc library were compiled against and should be left intact. When you compile something that needs the headers for the kernel you are currently running, it doesn't look to /usr/include, it looks for the headers in /lib/modules/<kernel version>/build/include. basically, install the kernel-source package and you should be alright.
 
  


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
Install can't find source headers, though I have them robertpratt Linux - Software 4 09-12-2005 06:55 PM
pytgtk-2, could not find headers _tomMmy_ Linux - Software 4 08-22-2004 10:27 PM
gDesklets: could not find Python headers revenge80200 Linux - Software 5 08-22-2004 10:18 PM
KDevelop cannot find QT headers and libraries?! mscollins1 Programming 1 04-10-2004 04:12 PM
util-linux cannot find any headers emu_123 Linux From Scratch 3 11-05-2003 04:19 AM


All times are GMT -5. The time now is 05:28 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