LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 11-12-2010, 04:36 AM   #1
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 36
How to install kernel source?


During installation of one of driver i needed to

Remove any earlier version drivers using
make clean -r command.

Where i m getting following error.
Code:
# make clean -r
Kernel source is not installed
make: *** [kernelsrccheck] Error 1
My kernel version

Code:
# uname -r
2.6.18-128.2.1.4.9.el5xen
Where would i get kernel source ?
How should i install it.

Last edited by pinga123; 11-12-2010 at 04:40 AM.
 
Old 11-12-2010, 04:38 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Use your distribution's package manager to get the kernel source package for the kernel you're running.
 
Old 11-12-2010, 04:43 AM   #3
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by Nylex View Post
Use your distribution's package manager to get the kernel source package for the kernel you're running.
We havent setup YUM.

However i can see following options for O.S download.
Oracle VM Server 2.2.0 373M
Oracle VM Server 2.2.0 Source 600M

Will i get the kernel source in 2nd CD?
 
Old 11-12-2010, 04:45 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
I don't know. Have a look? I assume the package is called something like "kernel-source-version".
 
Old 11-12-2010, 10:10 AM   #5
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 36
I have got kernel-2.6.18-128.2.1.4.9.el5.src.rpm from the source CD .
Now i m confused how to install it .
As even running rpm -ivh kernel-2.6.18-128.2.1.4.9.el5.src.rpm
I m getting same error.
Edit/Delete Message
 
Old 11-13-2010, 02:36 AM   #6
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Where is the makefile looking for the kernel source? You might want to post said makefile here.
 
Old 11-13-2010, 05:15 AM   #7
shpenat
Member
 
Registered: Dec 2008
Distribution: LFS
Posts: 95

Rep: Reputation: 21
Can you be more specific about what system and what CDs are you using?

Some distribution provide only one (maybe two) CDs as installation medium, but they rarely contain any source codes. If you have full set if CDs for your linux (which should be something around 5) then they might contain your kernel sources.
 
  


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
how to install kernel-syms and kernel-source on fedora 6 aw_wolfe Linux - Newbie 5 03-24-2008 02:03 PM
Manual nvidia install needs kernel source, unable to select source in YOU sirius57 Linux - Hardware 2 12-04-2007 05:11 PM
Configure kernel source for standard debian kernel (module install) twinkers Debian 2 12-22-2005 11:19 AM
trying to find/install kernel-source or kernel-headers timsch75 Slackware 3 10-22-2005 09:17 AM
10.1 install kernel and kernel-source different - build fails Feebles Mandriva 2 06-10-2005 06:58 PM


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